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

JCL FOR CREATING A GDG


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

New User


Joined: 24 Oct 2006
Posts: 9
Location: delhi

PostPosted: Thu Dec 06, 2007 2:43 pm
Reply with quote

Hi,
Can anyone of u can please let me know the complete JCl for creating GDGs.
Thanks
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 3:08 pm
Reply with quote

Define a Generation Data Group and a Generation Data Set within it

In this example, a generation data group is defined in the master catalog.
Next, a generation data set is defined within the GDG by using JCL
statements.

Code:
//DEFGDG1  JOB    ...                                       
//STEP1    EXEC   PGM=IDCAMS                                           
//SYSPRINT DD     SYSOUT=*                                 
//SYSIN    DD     *                                         
    DEFINE GENERATIONDATAGROUP -                           
           (NAME(GDG01) -                                   
           EMPTY -                                         
           NOSCRATCH -                                     
           LIMIT(255) )                                     
/*   



Code:
//DEFGDG2  JOB    ...                                       
//STEP1    EXEC   PGM=IEFBR14                               
//*                                                         
//* VSER03 must be the volume of GDGs catalog volume       
//*                                                         
//GDGDD1   DD     DSNAME=GDG01(+1),DISP=(NEW,CATLG),       
//         SPACE=(TRK,(10,5)),VOL=SER=VSER03,               
//         UNIT=DISK                                       
//SYSPRINT DD     SYSOUT=A                                 
//SYSIN    DD     *                                         
/*             


I got this from MVS/QuickRef. You can get more info on this using QW GDG in ISPF.
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 Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Creating CSV file from Variable recs ... DFSORT/ICETOOL 11
No new posts Creating a VB file PL/I & Assembler 10
No new posts Creating filelist ps file JCL & VSAM 2
Search our Forums:

Back to Top