Call JCL from a rexx?

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Sudeep Nair
New Member
Posts: 5
Joined: Tue Jun 17, 2014 4:06 pm

Call JCL from a rexx?

Post 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?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Call JCL from a rexx?

Post by enrico-sorichetti »

can i call or execute a jcl in my rexx program.
NO, but You can SUBMIT IT
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Call JCL from a rexx?

Post 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
zprogrammer
Sudeep Nair
New Member
Posts: 5
Joined: Tue Jun 17, 2014 4:06 pm

Re: Call JCL from a rexx?

Post 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?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Call JCL from a rexx?

Post by enrico-sorichetti »

the previous answers should have clarified the point 8-)
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
prino
Registered Member
Posts: 68
Joined: Sun Jun 01, 2014 4:15 am
Location: Vilnius, Lithuania
Contact:

Re: Call JCL from a rexx?

Post 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?
Robert AH Prins
robertahprins @ the.17+Gb.Google thingy
Some z/OS code here
Rahul Dhoble
New Member
Posts: 6
Joined: Sun Apr 27, 2014 10:47 am

Re: Call JCL from a rexx?

Post by Rahul Dhoble »

I might be hijacking this thread but why it's a a stupid design. I've seen many REXX doing this... :?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Call JCL from a rexx?

Post 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
zprogrammer
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Call JCL from a rexx?

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Sudeep Nair
New Member
Posts: 5
Joined: Tue Jun 17, 2014 4:06 pm

Re: Call JCL from a rexx?

Post 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?
Rahul Dhoble
New Member
Posts: 6
Joined: Sun Apr 27, 2014 10:47 am

Re: Call JCL from a rexx?

Post 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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Call JCL from a rexx?

Post 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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”