Using FUSUTIL in SEND Command

The FUSUTIL utility can be used within a SEND file transfer.

The FUSUTIL commands typically run as the second step of a file transfer request. You can use this method to get confirmation that the RENAME or DELETE function actually works. Additionally, you can use the EXIST function as part of a z/OS platform server script to check whether a file exists on a remote platform; or you can use it as part of a UNIX shell script to perform the same function as on z/OS platform server. If the file exists, you can then issue a file transfer request to receive the file from the remote system.

Example

If you are initiating a file transfer request on Windows, you can request the following PPAs to be performed after the file transfer is completed:

COMMAND="fusutil EXIST /acct/data/march.data"

This command checks whether the file /acct/data/march.data exists on the remote platform. A zero return code indicates that the file exists, while a non-zero return code indicates that the file cannot be found. A non-zero return code is also returned if a network error occurs, or if the syntax of the FUSUTIL command is invalid.