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

Problem in defining GDG


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

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Mon Feb 23, 2009 10:45 am
Reply with quote

I tried to define GDG and also its model dataset but it is giving error duplicate dataset name.
Below is the JCL I used,can anyone let me know the error in this.

//CREATGDG JOB (),'GDG',
// NOTIFY=&SYSUID,MSGCLASS=9,TIME=(1,10),REGION=0M,
// USER=Y00057,PASSWORD=
//STEP1 EXEC PGM=IDCAMS
//SYSIN DD *
DEFINE GDG(NAME(TCS.Y00057.GDG.APS) -
LIMIT(10) -
NOEMPTY -
SCRATCH)
/*
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=TCS.Y00057.GDG.APS,DISP=(NEW,KEEP), ---model dsn
// DCB=(RECFM=FB,LRECL=20),SPACE=(TRK,0)
//*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Feb 23, 2009 11:04 am
Reply with quote

Hello,

Suggest you talk with your dasd storage people and learn if the dasd is sms-managed. SMS-managed datasets do not need a model dataset, so it may not be an issue.

If you do need a model, do not use the same name as your gdg base. This causes the duplicate. Using something quite similar with MODEL in the dsname makes it easier to spot (usually there are standards that should be followed).
Back to top
View user's profile Send private message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Mon Feb 23, 2009 11:51 am
Reply with quote

I want to define model datset or otherwise I have to give DCB parameters everytime while creating new generations because new generation will take dcb parameter of the input dataset as default.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 23, 2009 2:30 pm
Reply with quote

abhay pratap singh wrote:
I want to define model datset or otherwise I have to give DCB parameters everytime while creating new generations because new generation will take dcb parameter of the input dataset as default.

WRONG ........... As suggested - go and talk to your storage people. There is no longer a need for a model DSCB just so long as the SMS ACS routines are defined correctly. At most all that you need to code is RECFM and LRECL for the +1 generation, and if you ask your storage people nicely then you will not even have to do that.

This covers SMS managed, non SMS managed, DASD and tape datasets. IBM recommend that model DSCB are no longer used when DFSMSsms is installed.
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Defining a struct PL/I & Assembler 3
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top