Directory Listing for Windows Server from zOS
Directory Listing for Windows Server from z/OS
This example demonstrates executing a simple Windows command from z/OS using the COMMAND option, as opposed to the SCRIPT option.
The Windows DIR command is executed in this example. The DIR command writes the file listing to its standard out, which is redirected to the UCMD Manager on z/OS. The UCMD Manager writes the standard out to ddname UNVOUT.
//jobname JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//*
// JCLLIB ORDER=SBI.UNV.SUNVSAMP
//*
//STEP1 EXEC UCMDPRC
//SYSIN DD *
-cmd 'dir \'
-host hostname
-userid userid
-pwd password
/*
SYSIN Options
The SYSIN options used in this example are:
Components
Universal Command Manager for z/OS