|
|
| Author |
Message |
samanthjain
New User
Joined: 25 Jul 2008 Posts: 4 Location: Mumbai
|
|
|
|
Hi
I have a GDG base. I need to create first GDG version with the same attributes as the base. And the GDG version should be empty file.
Please help me which JCL utility will do this and how |
|
| Back to top |
|
 |
References
|
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3544 Location: Brussels once more ...
|
|
|
|
I am certain that you mean to say GENERATIONS rather than version. These are two very seperate entities and should not be mixed up.
What do you mean - with the same attributes as the base. The base is merely a catalog entry that holds information regarding the GDG as a whole, not its physical attributes such as RECFM or LRECL.
Use IEFBR14 to set up a null file with the correct RECFM & LRECL |
|
| Back to top |
|
 |
samanthjain
New User
Joined: 25 Jul 2008 Posts: 4 Location: Mumbai
|
|
|
|
So I can give the RECFM & LRECL as per my requirement.
Then can uoy please help me with the JCL. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3544 Location: Brussels once more ...
|
|
|
|
As it is a Friday, a lovely warm sunny day, and I am just about to depart to catch the Eurostar ........
| Code: |
//SETUPDSN EXEC PGM=IEFBR14
//MYDATA DD DSN=gdg base(+1),DISP=(,CATLG,CATLG),
// SPACE=(TRK,1),RECFM=??,LRECL=??
|
|
|
| Back to top |
|
 |
samanthjain
New User
Joined: 25 Jul 2008 Posts: 4 Location: Mumbai
|
|
|
|
Thanks a lot. . .  |
|
| Back to top |
|
 |
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 27 Location: bangalore
|
|
|
|
| Quote: |
the GDG version should be empty file.
|
Refer the below ..
//SYSUT2 DD DSN=your baseGDG(+1),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80),SPACE=(TRK,(1,1))
//SYSIN DD DUMMY
/* |
|
| Back to top |
|
 |
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 196 Location: Deerfield IL
|
|
|
|
| In my experience, if you might read that empty generation and you use IEFBR14 to create it you should either add the MODLDSCB or DSORG=PS. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8732 Location: 221 B Baker St
|
|
|
|
Hello,
If your data is not sms-managed, you need ensure that a "real" end-of-file is written to the dataset (IEFBR14 does not write an eof).
If the data is sms-managed, this is not an issue. |
|
| Back to top |
|
 |
|
|