Directory Tokens

To perform directory transfers, you can enter directory names with tokens to save your time.

Note: Tokens are case-sensitive.

The following table lists the tokens that you can use in directory transfers:

Token Description
$(SDIR)

This parameter substitutes the subdirectory of the file transferred. You can use this case-sensitive token with a receive transfer as part of the LocalFileName path and with a send transfer as part of the RemoteFileName path.

  • In the LocalFileName parameter when using a cfrecv command.
  • In the RemoteFileName parameter when using a cfsend command.

For example,

cfrecv ScanSubDir:Y LocalFileName:’/home/johndoe/data/$(SDIR)/$(RemoteFileName)’ RemoteFileName:’/mftps/data/*’ n:MontrealNode

As a result of this example, all files from /mftps/data directory and subdirectories are received with the same structure.

$(MEMBER) You can use this token to make names of received files in the local system the same as member names in a remote z/OS system.
Note: Use this token only when you perform a receive transfer from a remote z/OS system.

If there is no $(MEMBER) token in the file name from the z/OS side, this token is ignored.

For example, if you use /mftps/$(MEMBER)/filename as a file path, then the file path can be resolved to /mftps/DATA/filename WHERE $(MEMBER)= DATA from PROD.FILE.PDS(DATA).