List of File Tokens

The following is a list of tokens that are supported on IBM i.
Note: They are case sensitive.
Token Definition Generated Value
JDate Julian Date YYYYDDD
Time Local Time HHMMSSMSS
Time1 Local Time HHMMSS
Time2 Local Time HHMMSST
Date Local Date YYYYMMDD
Date1 Local Date YYMMDD
Date2 Local Date MMDDYY
Date3 Local Date DDMMYY
DateUS Local Date MMDDYYYY
LocalFileName Local File Name Including Extension

LocalFile: Library/LFile.txt/Member

RemoteFile: Library/$(LocalFileName)/Member

Resolution to this token: LFile.txt

LocalFileMember Local File Member Name

LocalFile: Library/LFile.txt/LocalMbr

RemoteFile: Library/RFile.txt/$(LocalFileMember)

Resolution to this token: LocalMbr

LocalFileBase Local File Base

LocalFile: Library/LFile.txt/Member

RemoteFile: Library/$(LocalFileBase)/Member

Resolution to this token: LFile

LocalFileExt Local File Extension

LocalFile: Library/LFile.txt/Member

RemoteFile: Library/$(LocalFileExt)/Member

Resolution to this token: txt

LocalUserId Local User Id

LocalFile: Library/LFile.txt/Member

RemoteFile: Library/$(LocalUserId).txt/Member

Resolution to this token: luser.txt

LocalFL# Local File Left Justified Position 01-16

LocalFile: Library/ A.B.C.txt /Member

RemoteFile: Library/$(LocalFL01)/Member

Resolution to this token: A

LocalFR# Local File Right Justified Position 01-16

LocalFile: Library/A.B.C.txt/Member

RemoteFile: Library/$(LocalFR01)/Member

Resolution to this token: txt

NoLocalFileBase Local File Name Exclude the Base

LocalFile: Library/A.B.C.txt/Member

RemoteFile: Library/$( NoLocalFileBase)/Member

Resolution to this token: B.C.txt

NoLocalFileExt Local File Name Exclude the Extension

LocalFile: Library/A.B.C.txt/Member

RemoteFile: Library/$(NoLocalFileExt)/Member

Resolution to this token: A.B.C

TransactionNumber Local Transaction Number

LocalFile: Library/LFile.txt/Member

RemoteFile: Library/$(TransactionNumber )/Member

Resolution to this token: IA18100117

RemoteFileName Remote File Name

LocalFile: Library/$(RemoteFileName)/Member

RemoteFile: Library/RFile.txt/Member

Resolution to this token: RFile.txt

RemoteFileBase Remote File Base

LocalFile: Library/$(RemoteFileBase)/Member

RemoteFile: Library/RFile.txt/Member

Resolution to this token: RFile

RemoteFileExt Remote File Extension

LocalFile: Library/$(RemoteFileExt)/Member

RemoteFile: Library/RFile.txt/Member

Resolution to this token: txt

RemoteUserId Remote User Id

LocalFile: Library/$(RemoteUserId).txt/Member

RemoteFile: Library/RFile.txt/Member

Resolution to this token: ruser.txt

RemoteFL# Remote File Left Justified Position 01-16

LocalFile: Library/$(RemoteFL01)/Member

RemoteFile: Library/A.B.C.txt/Member

Resolution to this token: B.C.txt

RemoteFR# Remote File Right Justified Position 01-16

LocalFile: Library/$(RemoteFR01)/Member

RemoteFile: Library/A.B.C.txt/Member

Resolution to this token: txt

NoRemoteFileBase Remote File Name Exclude the Base

LocalFile: Library/$(NoRemoteFileBase)/Member

RemoteFile: Library/A.B.C.txt/Member

Resolution to this token: B.C.txt

NoRemoteFileExt Remote File Name Exclude the Extension

LocalFile: Library/$(NoRemoteFileExt)/Member

RemoteFile: Library/A.B.C.txt/Member

Resolution to this token: A.B.C

RemoteTransactionNumber Remote Transaction Number

LocalFile: Library/LocalFile.txt/Member

RemoteFile: Library/$(RemoteTransactionNumber)/Member

Resolution to this token: RA18100052

The format of the file name using the token would be: $(TokenName). All tokens are converted before being sent to the remote system, except for Remote Transaction Number.
Note: When using the dollar sign ($) or the forward slash (/) on the command line, some UNIX systems require a backslash (\) before the dollar sign or the forward slash to be read properly by the UNIX system.