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

GDG generation not deleted with RETPD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Aug 04, 2011 6:10 pm
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: 8797
Location: Welsh Wales

PostPosted: Thu Aug 04, 2011 6:25 pm
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
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: 1702
Location: Australia

PostPosted: Fri Aug 05, 2011 4:20 am
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

Senior Member


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

PostPosted: Fri Aug 05, 2011 5:35 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Report generation JCL & VSAM 18
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
No new posts Sequence number generation for multip... DFSORT/ICETOOL 2
Search our Forums:

Back to Top