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 can i create GDG base

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
venkat1111_a1

New User


Joined: 14 Feb 2006
Posts: 8

PostPosted: Mon Jul 10, 2006 1:53 pm    Post subject: how can i create GDG base
Reply with quote

hai
how can i create a GDG base& generations.
Back to top
View user's profile Send private message

Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Mon Jul 10, 2006 4:14 pm    Post subject: Hi
Reply with quote

Hi,

Either you can go with File master or File -Aid Utlities which would invoke
IDCAMS in batch or could directly code the IDCAMS in JCL as the pgm for creating the GDG base.




-Han.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jul 11, 2006 1:04 am    Post subject:
Reply with quote

The IDCAMS command is 'DEF GDG'.

O.
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Tue Jul 11, 2006 1:59 am    Post subject:
Reply with quote

Here are some standard JCL for defining, modifying, or deleting GDGs.

The 1st control card will delete a GDG.
The 2nd control card will define a GDG.
The 3rd control card will modify an existing GDG for a different number of versions.

Code:

//DEFINE EXEC PGM=IDCAMS                                 
//SYSPRINT DD SYSOUT=*                                   
//SYSIN    DD *                                         
  DEL 'HLQ.DATA.SET.NAME' GDG                           
                                                         
  DEF GDG  (NAME(HLQ.DATA.SET.NAME) LIMIT(4) SCRATCH)   
                                                         
  ALTER 'HLQ.DATA.SET.NAME' LIMIT(5)                     
/*                                                       
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
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
No new posts How to create/edit/update a new GDG V... karthikbalakumar8 JCL & VSAM 2 Fri Feb 05, 2016 6:35 pm
No new posts Syntax to create new tableBASE library Sumeendar IBM Tools 1 Tue Sep 15, 2015 6:25 pm


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