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
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am


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