Automatically Create a Unique zOS Command ID Using Zeke Variables

Automatically Create a Unique z/OS Command ID for your Universal Agent Process Using Zeke Variables

Zeke has a set of reserved variables available that get substituted during job submission. The default character $ is used to identify a Zeke variable within the instream JCL. This default character can be changed during installation. Create a variable whose value is set based on the current schedule date. Use this variable in the UCMD Manager jobs.

(See the ASG Zeke documentation for instructions on variable usage.)

//S1 EXEC UCMDPRC
//LOGONDD  DD DISP=SHR,DSN=hlq.encrypted.file         
//SCRIPTDD DD *  
DIR                                                   
//SYSIN      DD *
-cmdid 'jobname$SCHDATEunixpayrolljob1'                                              <== Zeke  variable
-script scriptdd -host dallas -encryptedfile logondd -managerft yes -restart auto   
/*

Expanded Results:

//S1 EXEC UCMDPRC
//LOGONDD  DD DISP=SHR,DSN=hlq.encrypted.file         
//SCRIPTDD DD * 
dir                                      
//SYSIN      DD *
-cmdid 'JOBNAME03254unixpayrolljob1'
-script scriptdd -host dallas -encryptedfile logondd -managerft yes -restart auto   
/*


* If the cmdid identifier contains spaces, it must be enclosed in either single ( ' ) or double ( " ) quotation marks.

SYSIN Options

The SYSIN options used in this example are:

Option

Description

-cmd

Command to execute on the remote system.

-scriptddname from which to read a script file. The script file is sent to the remote system by UCMD Manager for execution.

-host

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

-encryptedfileddname from which to read an encrypted command file created with the Universal Agent Universal Encrypt (UENCRYPT) utility.

-managerft

Specification for whether or not the Manager Fault Tolerance (MFT) feature is used. A value of yes specifies that MFT should be used.

-cmdid

Unique command ID associated with the remote unit of work.

-restart

Specification for whether or not the manager is requesting restart. A value of yes indicates the Manager is being restarted.

Components

Universal Command Manager for z/OS