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

how can i create GDG base


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 2358
Location: Israel

PostPosted: Tue Jul 11, 2006 1:04 am
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
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 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 create rexx edit Macro that edits the... CLIST & REXX 3
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts Best way to create an automated line ... TSO/ISPF 3
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
Search our Forums:

Back to Top