Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to create an empty GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
samanthjain

New User


Joined: 25 Jul 2008
Posts: 4
Location: Mumbai

PostPosted: Fri Jul 25, 2008 6:43 pm    Post subject: How to create an empty GDG
Reply with quote

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
View user's profile Send private message
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

PostPosted: Fri Jul 25, 2008 6:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
samanthjain

New User


Joined: 25 Jul 2008
Posts: 4
Location: Mumbai

PostPosted: Fri Jul 25, 2008 7:01 pm    Post subject: Reply to: How to create an empty GDG version
Reply with quote

So I can give the RECFM & LRECL as per my requirement.

Then can uoy please help me with the JCL.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

PostPosted: Fri Jul 25, 2008 7:07 pm    Post subject:
Reply with quote

As it is a Friday, a lovely warm sunny day, and I am just about to depart to catch the Eurostar ........ icon_biggrin.gif
Code:

//SETUPDSN EXEC PGM=IEFBR14
//MYDATA   DD DSN=gdg base(+1),DISP=(,CATLG,CATLG),
//            SPACE=(TRK,1),RECFM=??,LRECL=??
Back to top
View user's profile Send private message
samanthjain

New User


Joined: 25 Jul 2008
Posts: 4
Location: Mumbai

PostPosted: Fri Jul 25, 2008 7:14 pm    Post subject:
Reply with quote

Thanks a lot. . . icon_smile.gif
Back to top
View user's profile Send private message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 27
Location: bangalore

PostPosted: Fri Jul 25, 2008 7:28 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 196
Location: Deerfield IL

PostPosted: Fri Jul 25, 2008 8:06 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8732
Location: 221 B Baker St

PostPosted: Fri Jul 25, 2008 9:22 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1