View previous topic :: View next topic |
Author |
Message |
Sreejith Intermediate
Joined: 02 Dec 2002 Posts: 155 Topics: 25 Location: N.Ireland
|
Posted: Wed May 09, 2007 10:38 am Post subject: EXPDT &RETPD |
|
|
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 |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed May 09, 2007 10:49 am Post subject: |
|
|
According to my JCL Manual RETPD=2 is 2 days. |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed May 09, 2007 10:50 am Post subject: |
|
|
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 |
|
 |
Sreejith Intermediate
Joined: 02 Dec 2002 Posts: 155 Topics: 25 Location: N.Ireland
|
Posted: Wed May 09, 2007 10:54 am Post subject: |
|
|
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  |
|
Back to top |
|
 |
Sreejith Intermediate
Joined: 02 Dec 2002 Posts: 155 Topics: 25 Location: N.Ireland
|
Posted: Wed May 09, 2007 10:57 am Post subject: |
|
|
Bill,
Thanks. going to get some help from the system guys here.
Thanks
Sreejith |
|
Back to top |
|
 |
|
|