MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Email Card with Dynamic Attachment File Name

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sakreg
Beginner


Joined: 28 Feb 2005
Posts: 80
Topics: 26

PostPosted: Wed Aug 02, 2006 12:55 am    Post subject: Email Card with Dynamic Attachment File Name Reply with quote

The below is a sample mainframe Email card, I want to make FILENAME to be dynamic in nature.

Code:
********************************* Top of Data **********************************
%XMITIP  SAKREG@MVSGROUP.COM                   ASA   -                         
MSGDS 'OUTPUT.MAIL'                                  -                         
SUBJECT 'Successful Output Report '                  -                         
FROM SAKREG@MVSGROUP.COM                             -                         
FILEDESC SUCCESSFULOUTPUTFILE                        -                         
FILENAME SUCCESSFULOUTPUTFILE.TXT                    -                         
FILE 'OUTPUT.FILE'                                   -                         
ADDRESSFILE 'ADDRESS.FILE'                                                       
******************************** Bottom of Data ********************************


The programe generates three different kind of report (based on the content). The output filename remains the same.

If Output File has some content like below and NO presence of asterik (*), FILENAME would be Compare Report.txt when sent as an attachment

Code:
Name Boy Girl


If Output File has some content like below with an asterik (*) below ALL columns at the specified position, FILENAME would be Full Report.txt when sent as an attachment

Code:
Name  Boy Girl
  *    *   *


If Output File has some content like below with an asterik (*) below but NOT All column will have an asterik (*) at the specified position, FILENAME would be Partial Report.txt when sent as an attachment

Code:
Name  Boy Girl
 *     *   


Any thoughts on how this can be addressed?
Back to top
View user's profile Send private message
sakreg
Beginner


Joined: 28 Feb 2005
Posts: 80
Topics: 26

PostPosted: Wed Aug 02, 2006 4:31 am    Post subject: Reply with quote

I was able to arrive to a Solution using SAS to generate the Email Card in a Dynamic Fashion. Very Happy

The thread can be deleted.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group