ALTER expiration date for DATASET in JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

ALTER expiration date for DATASET in JCL

Postby droxolf » Tue Apr 23, 2019 2:46 pm

Hello all,

i wish alter managementclass and expiration date for a dataset in JCL.

For management class, i use PGM=IKJEFT01 ans SYSIN next :
ALTER MY.DATASET.NAME MGMTCLAS(MCXXX)
==> it's WORK


But how to do for alter expiration date dataset in JCL ?

//STEP1   EXEC PGM=IDCAMS            
//SYSPRINT DD SYSOUT=X                            
//SYSIN    DD *                                  
 ALTER -                                          
 MY.DATASET.NAME -
 TO(2019110)                                      
/*



Thanks for your help.
droxolf
 
Posts: 1
Joined: Tue Apr 23, 2019 2:33 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ALTER expiration date for DATASET in JCL

 

Re: ALTER expiration date for DATASET in JCL

Postby expat » Tue Apr 23, 2019 4:22 pm

Talk to your storage management people as some functions - such as expiration date may be disabled by the management class.
That was one thing that I always did - don't let users specify retentions outside of the management class.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: ALTER expiration date for DATASET in JCL

Postby willy jensen » Tue Apr 23, 2019 8:12 pm

Well you can but only if you open the dataset for update:
//SYSUT2 DD DSN=data.set.name,DISP=SHR,RETPD=19200
The manual says that the RETPD syntax for dates after jan 1st 2000 is yyyy/ddd, but when I try that I get message IEFC650I INCORRECT USE OF SLASH IN THE RETPD FIELD. I haven't investigated.
willy jensen
 
Posts: 307
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 42 times

Re: ALTER expiration date for DATASET in JCL

Postby Robert Sample » Tue Apr 23, 2019 10:17 pm

EXPDT supports YYYY/DDD but RETPD is just a number of days (up to 93000 after z/OS 1.12; up to 9999 before that).
Robert Sample
Global moderator
 
Posts: 3655
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 270 times

Re: ALTER expiration date for DATASET in JCL

Postby willy jensen » Tue Apr 23, 2019 11:05 pm

Of course, blame it on senior moments.
,EXPDT=2019/200 works fine - but still only for open with update.
willy jensen
 
Posts: 307
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 42 times

Re: ALTER expiration date for DATASET in JCL

Postby expat » Wed Apr 24, 2019 11:59 am

expat wrote:Talk to your storage management people as some functions - such as expiration date may be disabled by the management class.
That was one thing that I always did - don't let users specify retentions outside of the management class.


Until the OP establishes that they are actually permitted to make the changes .................
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post