Page 1 of 1

Call JCL from a rexx?

Posted: Sun Oct 05, 2014 9:17 pm
by Sudeep Nair
hi ,

can i call or execute a jcl in my rexx program. i have a job named "testjcl" that i want to call in my rexx program. Is there some example for this?

Re: Call JCL from a rexx?

Posted: Sun Oct 05, 2014 10:52 pm
by enrico-sorichetti
can i call or execute a jcl in my rexx program.
NO, but You can SUBMIT IT

Re: Call JCL from a rexx?

Posted: Mon Oct 06, 2014 2:10 pm
by zprogrammer
Hi Sudeep,

As Enrico said You can submit a JCL using REXX
If you could clarify on what you are trying to achieve ,somehere will be able to help you

Re: Call JCL from a rexx?

Posted: Fri Nov 14, 2014 3:42 pm
by Sudeep Nair
I want to submit a test-jcl using REXX. Assume that the jcl name is TESTJCL and it allocates a dataset, can I submit this jcl using REXX?

Re: Call JCL from a rexx?

Posted: Fri Nov 14, 2014 4:02 pm
by enrico-sorichetti
the previous answers should have clarified the point 8-)

Re: Call JCL from a rexx?

Posted: Mon Nov 24, 2014 8:48 pm
by prino
Sudeep Nair wrote:I want to submit a test-jcl using REXX. Assume that the jcl name is TESTJCL and it allocates a dataset, can I submit this jcl using REXX?
Stupid, stupid, stupid design. What happens if your job doesn't run for the next 42 minutes?

Re: Call JCL from a rexx?

Posted: Tue Nov 25, 2014 6:19 pm
by Rahul Dhoble
I might be hijacking this thread but why it's a a stupid design. I've seen many REXX doing this... :?

Re: Call JCL from a rexx?

Posted: Tue Nov 25, 2014 7:02 pm
by zprogrammer
If a person wants to submit a job from REXX I beleive it will be from foreground..
So if the job is going to take time to run it is gonna lock up your terminal until then ...
Hope you got the point Rahul..

I would rather suggest to use INTRDR within a JCL

Re: Call JCL from a rexx?

Posted: Tue Nov 25, 2014 9:29 pm
by enrico-sorichetti
let' s clear a few language barriers here ...
can i call or execute a jcl in my rexx program.
jcls do not get called nor executed full stop

jcls are processed by <JCL> to setup the environment for the execution of programs

submit means simply to take a PS dataset or a PDS member and using the internal reader facility hand it to JES for later processing

so a submit will lock the screen for the ( very short ) time needed by JES to acquire it

I strongly sugget to the TS to read and meditate on

http://www.redbooks.ibm.com/abstracts/s ... .html?Open

Re: Call JCL from a rexx?

Posted: Mon Dec 15, 2014 2:13 pm
by Sudeep Nair
Thanks.

Should I take as the learning as that because the screen might get locked for some to long time that's why this is bad desig?

Re: Call JCL from a rexx?

Posted: Mon Dec 29, 2014 2:55 pm
by Rahul Dhoble
Sudeep Nair wrote:Should I take as the learning as that because the screen might get locked for some to long time that's why this is bad desig?
I think, yes? A Moderator might help us to understand it better.

Re: Call JCL from a rexx?

Posted: Mon Dec 29, 2014 7:29 pm
by Robert Sample
Tying up a terminal for a long time indicates the system is using resources to do so -- and this use of system resources, which may prevent production work from completing, is the REAL issue with such a design.