I have a Deliver destination set up that sends PDF files to a server defined in the email address and using EFORMAT of PDF.
I have a need to be able to dictate the file name.
At the moment, the file name is being determined by the REPORT ID.
A typical file name is reportid.jobid.pdf such as:
ABRPTS01-CD999.JOB035037.PDF
Is there a way for me to alter this file name, so as to include the report description?
Release : 14.0
The Eformat value of PDF refers to a customized email template.
Below is a sample email template:
/EMAIL PARMS
CLASS=B
DEST=ESF2
FORMS=EMAIL
WRITER=EMAILTXT
SENDRPT=NO
MAILFILE='&FNM.MSG'
MAILTO=&EMADR1
ADDRESS='SUBJECT=REPORT &RID IS READY FOR VIEWING'
In an email template, the MAILFILE parameter specifies the file name of the attachment to an e-mail:
MAILFILE='xxx...xxx'
where "xxx...xxx" may contain variables or hard-coded characters.
For example:
. &FNM.PDF
. ABC.&DESC.TXT
In this instance, the customer wished to add &DESC to the filename.