Examples of Using the File Name Tokens
When transferring a file, you can create the file name using file name tokens instead of a regular file name.
See the following examples for your reference. These examples use this sample system date/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
Date1YYMMDD 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
RemoteFileBaseandRemoteFileExt.File name:
PROD.TEST.ACCT.TAX.Y2009RemoteFileBaseis all data before the last qualifier:PROD.TEST.ACCT.TAXRemoteFileExtis all data after the first qualifier:TEST.ACCT.TAX.Y2009
The following two examples can be used when z/OS is sending a file to a Platform Server for Windows:
- Example 3: The user has entered a string of file name tokens when sending a file to a Platform Server for Windows. The Platform Server on the Windows system resolves the string into the directory name and file name.
File name:
C:\directory\$(SDD)$(SMON)$(SYYYY)\$(SHH24)$(SMI)$(SSS).datResolved file name:
C:\directory\25APR2009\170345.dat - Example 4: 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).datResolved file name:
C:\directory\25-APR-2009\17-03-45.dat