I am interested in a way to start up coz launcher from a job step, where I can set the value of ARG (currently set as a JCL PARM value) based on logic. For example, if the JCL job is running under RACF user @17171 and wishes to be run under server abc then I want to set ARG to a17171@abc
Is there a way to accomplish this? Can we startup coz launcher from a USS shell instead of the JCL job step level?
Thanks for your help.
- Scott
How to automate the value of ARG to Co:Z Launcher?
If you leave the "user@host" off the PARM, you can specify then as properties in DD COZCFG:
// EXEC PROC=COZPROC
//COZCFG DD *
target-host = myhost.myco.com
target-user = myuser
//STDIN DD *
....
//
Now all you have to do is to concatenate the COZCFG DD and generate the target-user line into a temporary passed dataset from a simple REXX or COZBATCH (Unix shell) batch job.
// EXEC PROC=COZPROC
//COZCFG DD *
target-host = myhost.myco.com
target-user = myuser
//STDIN DD *
....
//
Now all you have to do is to concatenate the COZCFG DD and generate the target-user line into a temporary passed dataset from a simple REXX or COZBATCH (Unix shell) batch job.