Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to include member after save

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

New User


Joined: 25 Jun 2010
Posts: 10
Location: india

PostPosted: Fri Jun 25, 2010 12:54 pm    Post subject: how to include member after save
Reply with quote

hi,

i tried writing in to the date-file from cobol as
// set date=101010

and included this file in run as below
.
.
.
.
//DATEFILE DD DSN=A.B.C(DATEFILE),
// DISP=SHR
// INCLUDE MEMBER=DATEFILE
//FILE1 DD DSN=A.B.C.F&DATE,
// DISP=(NEW,CATLG,DELETE),
.
.
.

so as to set &date to be what i have written in the date-file.
but while running &date is not assigned with updated content
it takes only the previous content before writing.
how to save the date-file after writing and include the updated content?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8619
Location: Back in jolly old England

PostPosted: Fri Jun 25, 2010 12:59 pm    Post subject:
Reply with quote

You can not do that within the same job. Once the JCL has been interpretted by JES, it is set in stone. So if you then update a file that is included into the JCL, it will be too late as the original would have been already processed by the JES interpreter.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Jun 25, 2010 2:47 pm    Post subject:
Reply with quote

I'm some what confused with what you've posted, you show this
Quote:
//FILE1 DD DSN=A.B.C.F&DATE,
and talked about "contents" here
Quote:
how to save the date-file after writing and include the updated content?
so by "content" you didn't really mean the "data in the file" instead "the qualified Data-set name"?

If the above lines make sense and are true for your case - search for EZACFSM1 in this Forum - you'll get enough examples to work upon what you are looking for.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8619
Location: Back in jolly old England

PostPosted: Fri Jun 25, 2010 2:53 pm    Post subject:
Reply with quote

You could always do this in two different jobs.

Job1 - creates the include file.
Job2 - uses the include file.

This is how we done this at another site many many years back, where the first job of an application created all of the includes that were to be used during the application, and any subsequent jobs then included them into the JCL stream.

Also, have you considered the use of the date variables available from your scheduling software. At my current site we use these all of the time in the production JCL

// SET DATE=#Date Var 1#

which is resolved by the schedular at job submission time.
Back to top
View user's profile Send private message
anand.nanda

New User


Joined: 25 Jun 2010
Posts: 10
Location: india

PostPosted: Fri Jun 25, 2010 3:22 pm    Post subject:
Reply with quote

SPLITTING OF JCLS WORKS FINE TO HANDLE THIS
THANKS
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 More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
This topic is locked: you cannot edit posts or make replies. How to save expanded jcl's into one l... enrico-sorichetti CLIST & REXX 13 Thu Jul 27, 2017 2:45 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am

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