IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX code to run using JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amit_sharma

New User


Joined: 03 Sep 2007
Posts: 2
Location: Kolkata

PostPosted: Wed Feb 04, 2009 3:44 pm
Reply with quote

Hi All,

I have written a REXX code which fetches a variable name (PDS name) and updates the members of that PDS. I find difficulty while executing it through JCL. It is giving me error for not able to pass the parameter and also not able to execute ISPEXEC in batch.

Any suggestions..
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4651
Location: Raleigh, NC, USA

PostPosted: Wed Feb 04, 2009 4:10 pm
Reply with quote

You didn't provide an example of your job, but it should look a lot like the job described in this topic.

The important details are that you need to provide DD statements for your ISPF libraries, and you need to start ISPF Services by issuing the ISPSTART command in your job.
Back to top
View user's profile Send private message
amit_sharma

New User


Joined: 03 Sep 2007
Posts: 2
Location: Kolkata

PostPosted: Wed Feb 04, 2009 4:36 pm
Reply with quote

Thanks I think i got the answer.
Back to top
View user's profile Send private message
harish_2480

New User


Joined: 07 Jun 2007
Posts: 23
Location: USA

PostPosted: Wed Mar 11, 2009 2:43 am
Reply with quote

Hi ,

Is it possible to execute a cataloged JCL procedure through rexx?
I have a requirement like, one PL/1 program will write 'TRUE' or 'FALSE' to a flat file then based on this value, If true i need to execute one jcl procedure else i need to execute another procedure.

Regards,
Harish.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 11, 2009 3:07 am
Reply with quote

Hello Harish and welcome to the forum,

A simpler approach would be for the pl/i program to set a return code based on whether this is a "true" or "false" run. Subsequent steps could then be conditionally executed to execute the "true" or "false" step(s)/proc(s).
Back to top
View user's profile Send private message
harish_2480

New User


Joined: 07 Jun 2007
Posts: 23
Location: USA

PostPosted: Wed Mar 11, 2009 3:17 am
Reply with quote

Hi,

Thank you very much for that post. We don't want to use the PLIRETC to set the condition because it will be continued to the called procedure based on 'true' or 'false'.

Harish.
Back to top
View user's profile Send private message
harish_2480

New User


Joined: 07 Jun 2007
Posts: 23
Location: USA

PostPosted: Wed Mar 11, 2009 3:21 am
Reply with quote

Hi,

Sorry, i missed something in the reply. It will continue the PLIRETC value to the calling procedure and i have lot of steps which have cond code checking 0/4.. etc like this.

thank you & regards.
Harish.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 11, 2009 4:48 am
Reply with quote

Hello,

Quote:
Is it possible to execute a cataloged JCL procedure through rexx?
Not that i'm aware of, but you could SUBMIT a job from rexx and execute whichever PROC you wanted to execute. . .
Back to top
View user's profile Send private message
harish_2480

New User


Joined: 07 Jun 2007
Posts: 23
Location: USA

PostPosted: Wed Mar 11, 2009 2:33 pm
Reply with quote

Hi,

Can you post the rexx which can submit a jcl proc please?

Regards,
Harish.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 11, 2009 2:55 pm
Reply with quote

Have you considered actually reading the manuals to find the SUBMIT command and its syntax yourself ?
Back to top
View user's profile Send private message
harish_2480

New User


Joined: 07 Jun 2007
Posts: 23
Location: USA

PostPosted: Thu Mar 12, 2009 1:31 am
Reply with quote

Sorry,

I haven't see.I will have a look at it. I thought of asking is it possible or not? anyway thank you very much for your support in this.

regards,
Harish
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 12, 2009 1:46 am
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals". Among them is the "REXX User Guide". Suggest you look there. It will also be good to look around and be aware of the many other manuals available from that page.

If you find something in one of the manuals that is not clear, post what you found and your question about it. Someone will be able to clarify.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Access library name in REXX CLIST & REXX 6
No new posts access library name in REXX CLIST & REXX 2
No new posts Receiving RC 5 when executing REXX pr... CLIST & REXX 3
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts Calling IEHPROGM from REXX CLIST & REXX 7
Search our Forums:

Back to Top