Page 1 of 1

To find Sortcard

PostPosted: Thu Nov 18, 2010 7:26 pm
by anu
Can anyone help me to find the sort card for the below concept?

A Mainframe File which has been created earlier should be compared with the current date and if the difference between the Current date & Creation date is greater than 90 days,then the file should be renamed as well as renamed file's expiration date should be incremented by 30 days. Is it possible to get it using Sort card?

Regards,
Anu.

Re: To find Sortcard

PostPosted: Thu Nov 18, 2010 7:41 pm
by enrico-sorichetti
kind of complicated to do it with sort ASIS
You would need to

list the catalog
process the listing to determine the dataset[s] to be processed
create the control statements for the rename and alter the expiration date
run the resulting job
==> a multi step multi job solution

most probably the SORT control card are the lesser of Your problems

certainly a scripted approach using rexx would make the process more manageable
and a single step one

Re: To find Sortcard

PostPosted: Thu Nov 18, 2010 10:11 pm
by steve-myers
You can't alter the expiration date for a disk data set anyway.

Re: To find Sortcard

PostPosted: Fri Nov 19, 2010 12:32 am
by dick scherrer
Hello and welcome to the forum,

Is it possible to get it using Sort card?
No.

If you intend to pursue this suggest you consider copying the file to the new name with the needed expiration date.

Why even do this? You might talk with your storage management people and ask about defining how this dataset can be managed without this manipulation.

Re: To find Sortcard

PostPosted: Sat Nov 20, 2010 5:55 pm
by NicC
What sort of suggestion or feedback is this?

Re: To find Sortcard

PostPosted: Sun Nov 21, 2010 10:58 pm
by prino
NicC wrote:What sort of suggestion or feedback is this?


Indian feedback :evil: from those nice, intelligent and highly qualified guys who are flooding the West on intra-company transfers and H1B visa.