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
 

 

JCL FOR CREATING A GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL FOR CREATING A GDG
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: 788
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 3:08 pm    Post subject:
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    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 Creating an 'Enter' event with IMS MF... dileep chirasani Java & MQSeries 1 Sat Aug 06, 2016 2:23 am
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts creating a physical sequential file i... Shaheen Shaik JCL & VSAM 8 Wed Jun 29, 2016 3:46 pm
No new posts Faccing issues while creating a GDG V... sravindra_s JCL & VSAM 5 Thu Jun 23, 2016 11:26 am
No new posts Creating a pipe delimited file from C... dmanwi COBOL Programming 1 Sat Mar 19, 2016 10:40 pm


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