Dataset Access Using DD Cards
When running the client programs
sftp2 in JCL, the
_BPX_SHAREAS environment variable must be set to
NO. Local datasets can be allocated by using DD cards. For the DD cards to work,
BPXBATSL must be used instead of
BPXBATSL uses local spawn and forces
sftp2 to run in the original address space where the DD information is available.
sftp2 commands cannot be used with DD names:
rm (remove file)
Empty datasets cannot be read when referred to by DD names.
For correct syntax, see the
SCP2GET2 examples in Section Unattended File Transfers.