Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7
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

Senior Member


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

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: 7
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

Global Moderator


Joined: 21 Sep 2010
Posts: 2467
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

Senior Member


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

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

Active User


Joined: 01 Sep 2015
Posts: 386
Location: Denmark

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 Required Date Format in Include Sort ... vivky_vivek DFSORT/ICETOOL 6 Fri Aug 14, 2020 6:52 am
No new posts Determine what library member is in, ... mdwait JCL & VSAM 9 Thu Jul 23, 2020 3:02 am
No new posts SMF Specify in the INCLUDE parameter ... Antonio A Negrelli DFSORT/ICETOOL 7 Sat Apr 25, 2020 5:32 am
No new posts Submit Print Job For PDS Member With ... AllenSieracki TSO/ISPF 17 Fri Apr 10, 2020 9:31 pm
No new posts IEBGENER is not Creating Member in PD... sandeep prajapati JCL & VSAM 7 Mon Mar 23, 2020 11:50 pm

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us