View previous topic :: View next topic
|
Author |
Message |
amit_sharma
New User
Joined: 03 Sep 2007 Posts: 2 Location: Kolkata
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
amit_sharma
New User
Joined: 03 Sep 2007 Posts: 2 Location: Kolkata
|
|
|
|
Thanks I think i got the answer. |
|
Back to top |
|
|
harish_2480
New User
Joined: 07 Jun 2007 Posts: 23 Location: USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
harish_2480
New User
Joined: 07 Jun 2007 Posts: 23 Location: USA
|
|
|
|
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 |
|
|
harish_2480
New User
Joined: 07 Jun 2007 Posts: 23 Location: USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
harish_2480
New User
Joined: 07 Jun 2007 Posts: 23 Location: USA
|
|
|
|
Hi,
Can you post the rexx which can submit a jcl proc please?
Regards,
Harish. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Have you considered actually reading the manuals to find the SUBMIT command and its syntax yourself ? |
|
Back to top |
|
|
harish_2480
New User
Joined: 07 Jun 2007 Posts: 23 Location: USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|