To find Sortcard

IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

To find Sortcard

Postby anu » Thu Nov 18, 2010 7:26 pm

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?

Posts: 1
Joined: Thu Nov 18, 2010 7:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: To find Sortcard


Re: To find Sortcard

Postby enrico-sorichetti » Thu Nov 18, 2010 7:41 pm

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
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: To find Sortcard

Postby steve-myers » Thu Nov 18, 2010 10:11 pm

You can't alter the expiration date for a disk data set anyway.
Global moderator
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: To find Sortcard

Postby dick scherrer » Fri Nov 19, 2010 12:32 am

Hello and welcome to the forum,

Is it possible to get it using Sort card?

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.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: To find Sortcard

Postby NicC » Sat Nov 20, 2010 5:55 pm

What sort of suggestion or feedback is this?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: To find Sortcard

Postby prino » Sun Nov 21, 2010 10:58 pm

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.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times



  • Related topics
    Last post