Page 1 of 1

how to submit a jcl

PostPosted: Thu Mar 03, 2011 12:52 pm
by syamcs
hi all
i have got a small requirement, can any one tell me how to submit a jcl using REXX.
regards
syam

Re: how to submit a jcl

PostPosted: Thu Mar 03, 2011 3:42 pm
by Akatsukami
syamcs wrote:hi all
i have got a small requirement, can any one tell me how to submit a jcl using REXX.
regards
syam

No, because the TSO SUBMIT command works whether it is embedded in Rexx or CLIST or is entered manually. To the left, it is possible to run Rexx outside the TSO environment, in which case the SUBMIT command will not work (I suppose that you could write your JCL to the internal reader, but now we're talking about being to program).

Re: how to submit a jcl

PostPosted: Thu Mar 03, 2011 8:15 pm
by Pedro
Use the SUBMIT command. See the help for SUBMIT

1. You can specify a dataset to submit
-or-
2. you can QUEUE the JCL statements and then SUBMIT *