Examples of Using File Name Tokens
When transferring a file, you can create the file name using file name tokens instead of a regular file name. The following examples show how to use file name tokens.
These examples use this sample system date and time: Wednesday, April 25, 2009 5:03:45.061 PM.
Example 1:
The user has entered a date token proceeded by the letter D when sending a file to a platform server for z/OS. The platform server on the z/OS system resolves the string into the Date1 YYMMDD format.
File name: PROD.TEST.DATA.SAMPLE.D$(Date1)
Resolved file name: PROD.TEST.DATA.SAMPLE.D090425
Example 2:
When the platform server for z/OS receives files, the following substitution is performed for either token LocalFileBase (or RemoteFileBase) and LocalFileExt (or RemoteFileExt).
File name: PROD.TEST.ACCT.TAX.Y2009
RemoteFileBase will be resolved to: PROD.TEST.ACCT.TAX
RemoteFileExt will be resolved to: TEST.ACCT.TAX.Y2009
Example 3:
This example can be used when the platform server for z/OS is sending a file to a platform server for UNIX.
The user has entered a string of file name tokens when sending a file to a platform server for UNIX. The platform server on the UNIX system resolves the string into the directory name and file name.
File name: /directory/filename.$(Date3).dat
Resolved file name: /directory/filename.030510.dat
Example 4:
This example can be used when the platform server for z/OS is sending a file to a platform server for Windows:
The user has used the file name tokens to generate a resolved file name that has dashes between the date and time fields when sending a file to a platform server for Windows.
File name: C:\directory\$(SDD)-$(SMON)-$(SYYYY)\$(SHH24)-$(SMI)-$(SSS).dat
Resolved file name: C:\directory\25-APR-2009\17-03-45.dat