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
 

 

Problem in defining GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Problem in defining GDG
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

Site Director


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

PostPosted: Mon Feb 23, 2009 11:04 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 23, 2009 2:30 pm    Post subject:
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    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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm


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