sakreg Beginner
Joined: 28 Feb 2005 Posts: 80 Topics: 26
|
Posted: Wed Aug 02, 2006 12:55 am Post subject: Email Card with Dynamic Attachment File Name |
|
|
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
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
Any thoughts on how this can be addressed? |
|