MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EXPDT &RETPD

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Wed May 09, 2007 10:38 am    Post subject: EXPDT &RETPD Reply with quote

We lost some of the tape datasets eventhough the EXPDT or RETPD are set to keep it for 5 years. So I was trying to understand how the RETPD works and I thought the second JCL given below will produce an error. But it just deleted the tape dataset. Any clue what is going wrong or did I totally misunderstood RETPD ?

Code:

//STEP01   EXEC PGM=SORT
//*
//SORTIN    DD *
ABCD
//SORTOUT   DD DSN=ABC00.SP.TEST,
//          DISP=(MOD,CATLG,DELETE),
//          UNIT=TAPE,LABEL=RETPD=2,
//          DCB=(LRECL=80,BLKSIZE=0,RECFM=FB)
//SYSIN DD *
SORT FIELDS=COPY
//SYSPRINT DD SYSOUT=*
//SYSOUT   DD SYSOUT=*


Code:

//STEP01   EXEC PGM=IEFBR14
//*
//FILE1     DD DSN=ABC00.SP.TEST,
//          DISP=(OLD,DELETE,DELETE),
//          UNIT=TAPE,LABEL=RETPD=2,
//          DCB=(LRECL=80,BLKSIZE=0,RECFM=FB)
//SYSPRINT DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed May 09, 2007 10:49 am    Post subject: Reply with quote

According to my JCL Manual RETPD=2 is 2 days.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed May 09, 2007 10:50 am    Post subject: Reply with quote

MVS saying "deleted" means nothing to a tape dataset, it will still have a RETPD. Depending on the tape mgmt options for your site it may be that:

- any uncataloged tape gets scratched?
- tapes from ABEND steps get a shorter RETPD?
- a user updated the EXPDT?

You need to check with the Tape Librarians and see if they can run an Audit report on the volume to see what caused it to go scratch.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Wed May 09, 2007 10:54 am    Post subject: Reply with quote

CraigG,
Thank for the reply. The above is only test JCL s I tried and I intentionally kept the RETPD as 2 days (who want to keep a test dataset for 5 yrs)

Looks like we both got the same JCL manual Wink
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Wed May 09, 2007 10:57 am    Post subject: Reply with quote

Bill,
Thanks. going to get some help from the system guys here.

Thanks
Sreejith
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group