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
 

 

Include a member getting created within jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
anjali.bisht

New User


Joined: 09 Aug 2007
Posts: 6
Location: India

PostPosted: Tue Oct 13, 2015 11:19 am    Post subject: Include a member getting created within jcl
Reply with quote

First step of my job i am executing a REXX program to create a PDS member (includes few JCL steps) which i would like to use in later half of my JCL.

I am using INCLUDE MEMBER but its not working as my JCL processes all the includes before it executes the REXX. What alternatives can i use? I am refrained from modifying or creating a new JCL. Please advise.
Back to top
View user's profile Send private message

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Oct 13, 2015 1:07 pm    Post subject:
Reply with quote

What you are trying to do is impossible. icon_rolleyes.gif All the JCL is read in before your REXX program runs and cannot be added-to. You could get the REXX to submit the JCL generated in the PDS member - but you say you can't create a new job.

Garry
Back to top
View user's profile Send private message
anjali.bisht

New User


Joined: 09 Aug 2007
Posts: 6
Location: India

PostPosted: Tue Oct 13, 2015 1:55 pm    Post subject:
Reply with quote

Thanks Garry, now that its for sure that there are no other alternatives i will think about submitting job through rexx.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Tue Oct 13, 2015 8:27 pm    Post subject:
Reply with quote

Why don't you wrap a IF then endif around this include with RC from your rexx routine? I think that should make a trick for you.

I don't mean to go against Garry's answer as he is right but give a try. I know JES load all includes as a first step .
Quote:

I am refrained from modifying or creating a new JCL. Please advise.


Wow! Dead end.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Oct 13, 2015 8:33 pm    Post subject:
Reply with quote

Quote:
Why don't you wrap a IF then endif around this include with RC from your rexx routine? I think that should make a trick for you.


... and how, exactly, at JCL input time, is JES going to predict the contents of the as-yet non-existent PDS include member that will be created by the REXX procedure..... ?? That'd be some trick, alright!! icon_rolleyes.gif icon_rolleyes.gif

Garry
Back to top
View user's profile Send private message
Willy Jensen

New User


Joined: 01 Sep 2015
Posts: 94
Location: Switzerland

PostPosted: Wed Oct 14, 2015 1:08 am    Post subject:
Reply with quote

Garry is right, this can't be done. But writing the JCL to an internal reader is a piece of cake, actually more or less the same process you would use to write to that member.
is case you don't remember the syntax:
//DDNAME DD SYSOUT=(A,INTRDR)
and in your REXX pgm:
address tso "execio" queued() "diskw ddname (finis)"
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm


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