Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REXX code to run using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: REXX code to run using JCL
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

Moderator Team Head


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

PostPosted: Wed Feb 04, 2009 4:10 pm    Post subject: Reply to: REXX code to run using JCL
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    Post subject: Re: Reply to: REXX code to run using JCL
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    Post subject: Is there any facility to execute JCL procedure through Rexx
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

Site Director


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

PostPosted: Wed Mar 11, 2009 3:07 am    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Mar 11, 2009 4:48 am    Post subject:
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    Post subject: Reply to: REXX code to run using JCL
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: 8593
Location: Back in jolly old England

PostPosted: Wed Mar 11, 2009 2:55 pm    Post subject:
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    Post subject: Reply to: REXX code to run using JCL
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

Site Director


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

PostPosted: Thu Mar 12, 2009 1:46 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us