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

how to include member after save


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Jun 25, 2010 12:59 pm
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

Superior Member


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

PostPosted: Fri Jun 25, 2010 2:47 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Jun 25, 2010 2:53 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top