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
 

 

GDG generation not deleted with RETPD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Khwairakpam Raju Singh

New User


Joined: 05 Dec 2007
Posts: 29
Location: Bangalore

PostPosted: Thu Aug 04, 2011 5:59 pm    Post subject: GDG generation not deleted with RETPD
Reply with quote

Hi All,

I have define a GDG base using IDCAMS with SYSIN parameter given below

//SYSIN DD *
DEFINE GDG -
(NAME(AAAA.BBBB.CCCC) -
SCRATCH NOEMPTY -
LIM(2) )
/*

In the JCL, I have created the dataset AAAA.BBBB.CCCC(+1) but given RETDT=2 as

Code:
//STEP01    EXEC PGM=SORT                             
//SYSOUT    DD SYSOUT=*                               
//SORTIN    DD DSN=A.B.C.INPUT,DISP=SHR
//SORTOUT   DD DSN=AAAA.BBBB.CCCC(+1),             
//             DISP=(NEW,CATLG,DELETE),               
//             UNIT=SYSALLDA,RETPD=2,                 
//             SPACE=(CYL,(30,30),RLSE)
//SYSIN     DD *       
     SORT FIELDS=COPY
 //*                                                         

Now According to GDG base property, this GDG can have MAX of 2 generation. If the limit is reach it should automatically delete the oldest dataset.

But as I have given the RETDT=2, dataset are not deleted even thought the limit is reached. and again it has not given any error too.

Any idea , why it has not given any error if generation have more then 2 dataset.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Thu Aug 04, 2011 6:10 pm    Post subject: Reply to: GDG generation not deleted with RETPD
Reply with quote

You're right, in theory with NOEMPTY and SCRATCH it should. What does your storage team have to say about this?
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: Thu Aug 04, 2011 6:25 pm    Post subject:
Reply with quote

As a rule you should not use RETPD or EXPDT for a GDS.

I recall many problems with GDS and HSM where the GDS had been created using RETPD and/or EXPDT.

As Superk has said, you need to talk to your own storage people to investigate and correct.
Back to top
View user's profile Send private message
Khwairakpam Raju Singh

New User


Joined: 05 Dec 2007
Posts: 29
Location: Bangalore

PostPosted: Thu Aug 04, 2011 7:37 pm    Post subject:
Reply with quote

Yes....they said it depends on the set of rules defined on the particular systems. Base on that , RETDT or GDG BASE Limit will get higher preference

Thanks a lot for your help.. :-)
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Aug 05, 2011 4:20 am    Post subject:
Reply with quote

Hi,

Even though the datasets are not deleted I bet they are no longer part of the GDG base ie. they have rolled off.

I also think there might be an IEC331I message in your output.


Gerry
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Fri Aug 05, 2011 5:35 am    Post subject:
Reply with quote

Can you confirm Gerry's comment with LISTCAT?
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 SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am
No new posts alphanumeric sequence generation sivaprasad.gadhi DFSORT/ICETOOL 8 Mon Mar 21, 2016 1:09 am
No new posts Count the number of rows updated or d... Chetan Kumar DB2 6 Tue Jul 14, 2015 7:57 pm


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