Posted by Jim Walker on April 18, 2008 at 13:01:42:
In Reply to: Can you submit a console command from a batch job? posted by Paul Lanoha on April 17, 2008 at 14:53:54:
: Can you enter a console command from a batch job..
: $tj'jobname',srvclass=bathot
: I tried this but it did not work, any ideas?
: //STEP01 EXEC PGM=IKJEFT01
: //SYSTSPRT DD SYSOUT=*
: //SYSTSIN DD *
: $TJ'jobname',SRVCLASS=BATHOT
: /*
The JCL CONSOLE command allows a console command to be submitted from a batch job. But the command is executed when the job is read with the READER. And you must have the authority to issue the command.
// CONSOLE '$TJ1234,srvclass=bathot'
You can also run IOF in batch TSO and submit the command from the IOF console. But that also requires the authority to issue the command. But from IOF you can probably use the IOF SET command to set the service class.