How to create unique file names when using the FTP print driver?

Document ID : KB000022698
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

When using the FTP print driver how can I create unique file names in CA Spool on the system where the files are sent to?

Instructions:

  • Use any combination of the following replacement variables in the FILENAME= parameter:

         &UID   Userid of the print file creator.

         &NOD   Print file destination name.

         &FNM   Print file name.

         &FNO   Print file number.

         &PRM   Print file print-mode.

         &DAY   Current date in Dyymmdd format.

         &JUL   Current date in Julian Dyyddd format.

         &TIM   Current time in Thhmmss format.

         &TTL   File Output Title. 

         &JOB   Jobname of the print file creator.

         &JID   Job, STC or TSU id of the print file creator. 

         &JST   Job step name of the print file creator. 

         &PST   Proc step name of the print file creator. 

         &DDN   DD name of the print file creator.

         &CLS   Print file class.

 

  • This is a basic example on how you can use two replacement variables in the FILENAME= parameter:

         FILENAME=/&FNM.&FNO.PDF

  • The combination of &FNM and &FNO would create a file name that will be unique on the target system.

 

Additional Information:

  • Along with the FTP Print Driver the replacement variables can also be used with the following list of print drivers:

    Email, DISK, SAR, JES, ESF, XCOM and Connect:Direct Print Drivers.