Override zOS Standard Files with Procedure Symbolic Parameters

Override z/OS Standard Files with Procedure Symbolic Parameters

This example demonstrates how to override the z/OS standard input, output, and error using the UCMDPRC procedure symbolic parameters.

The UCMDPRC procedure provides parameters STDIN, STDOUT, and STDERR for the allocation of the UNVIN, UNVOUT, and UNVERR ddnames, respectively.


//jobname JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//*
//        JCLLIB ORDER=SBI.UNV.SUNVSAMP 
//* 
//STEP1 EXEC UCMDPRC,
//  STDIN='DUMMY',
//  STDERR='SYSOUT=H',  
//  STDOUT='DISP=SHR,DSN=hlq.DATA.LIST(OUT2)'  
//SYSIN  DD  *
-host     hostname
-userid   username
-pwd      password
-cmd      command 
/*   

SYSIN Options

Option

Description

-host

Host name or IP address of the remote system on which to execute the script.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

-cmd

Command to be executed on the remote system.

Components

Universal Command Manager for z/OS