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

How to create an empty GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
samanthjain

New User


Joined: 25 Jul 2008
Posts: 17
Location: Mumbai

PostPosted: Fri Jul 25, 2008 6:43 pm
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
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 25, 2008 6:49 pm
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: 17
Location: Mumbai

PostPosted: Fri Jul 25, 2008 7:01 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Jul 25, 2008 7:07 pm
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: 17
Location: Mumbai

PostPosted: Fri Jul 25, 2008 7:14 pm
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: 87
Location: Bangalore

PostPosted: Fri Jul 25, 2008 7:28 pm
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: 305
Location: Deerfield IL

PostPosted: Fri Jul 25, 2008 8:06 pm
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 25, 2008 9:22 pm
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
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 How to create a list of SAR jobs with... CA Products 3
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts EMPTY file check scenario JCL & VSAM 6
No new posts COBOL - create and write to output fi... COBOL Programming 0
Search our Forums:

Back to Top