Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 & VSAM
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    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

expat

Global Moderator


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

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: 17
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: 8593
Location: Back in jolly old England

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: 17
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: 87
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: 305
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

Site Director


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

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
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Need to create file with Dynamic Name... kapil27 JCL & VSAM 4 Wed May 25, 2016 9:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us