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

Include a member getting created within jcl


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

New User


Joined: 09 Aug 2007
Posts: 7
Location: India

PostPosted: Tue Oct 13, 2015 11:19 am
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

Senior Member


Joined: 08 May 2006
Posts: 1099
Location: Dublin, Ireland

PostPosted: Tue Oct 13, 2015 1:07 pm
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: 7
Location: India

PostPosted: Tue Oct 13, 2015 1:55 pm
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

Global Moderator


Joined: 21 Sep 2010
Posts: 2567
Location: NYC,USA

PostPosted: Tue Oct 13, 2015 8:27 pm
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

Senior Member


Joined: 08 May 2006
Posts: 1099
Location: Dublin, Ireland

PostPosted: Tue Oct 13, 2015 8:33 pm
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

Active User


Joined: 01 Sep 2015
Posts: 416
Location: Denmark

PostPosted: Wed Oct 14, 2015 1:08 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts include cond ascii constant DFSORT/ICETOOL 4
No new posts DB2 group member usage DB2 0
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts Determine what library member is in, ... JCL & VSAM 9
No new posts SMF Specify in the INCLUDE parameter ... DFSORT/ICETOOL 7
Search our Forums:

Back to Top