Deliver - Need to specify "PDF" on output sent to a folder using EFORMAT
search cancel

Deliver - Need to specify "PDF" on output sent to a folder using EFORMAT

book

Article ID: 263539

calendar_today

Updated On:

Products

View

Issue/Introduction

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?

Environment

Release : 14.0

Resolution

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.