Your browser does not allow storing cookies. We recommend enabling them.


Remote Command Examples using JCL

Example 1: Remote command for creating a directory on a remote Unix system:

BPXBATCH PGM /opt/tectia/bin/sshg3 + +
mkdir testdir

Example 2: Remote command for creating a directory on a remote Windows system. Note that the quotes (") are not needed when Windows commands are run from JCL, but they are needed when the remote commands are run from USS shell:

BPXBATCH PGM /opt/tectia/bin/sshg3 + +
cmd /c mkdir testdir

Example 3: Multiple commands:

BPXBATCH PGM /opt/tectia/bin/sshg3 + +
cd /tmp; +
ls -l test.*; +
rm test.txt




What to read next:

  • Reduce Secure Shell risk. Get to know the NIST 7966.

    The NISTIR 7966 guideline from the Computer Security Division of NIST is a direct call to action for organizations regardless of industry and is a mandate for the US Federal government.
    Download now
  • ISACA Practitioner Guide for SSH

    With contributions from practitioners, specialists and SSH.COM experts, the ISACA “SSH: Practitioner Considerations” guide is vital best practice from the compliance and audit community.
    Download now