/
Override zOS Standard Files with Procedure Symbolic Parameters

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

/wiki/spaces/UA73/pages/3770747

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

/wiki/spaces/UA73/pages/3778830

Remote user ID with which to execute the command.

/wiki/spaces/UA73/pages/3778826

Password for the user ID.

/wiki/spaces/UA73/pages/3770285

Command to be executed on the remote system.

Components

/wiki/spaces/UA73/pages/3770655

 
 

Related content