View previous topic :: View next topic
|
Author |
Message |
abhay pratap singh
New User
Joined: 22 Nov 2007 Posts: 77 Location: noida
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
abhay pratap singh
New User
Joined: 22 Nov 2007 Posts: 77 Location: noida
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|