Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

changing the SORT card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vikas kumar jain

New User


Joined: 02 Aug 2006
Posts: 9
Location: noida

PostPosted: Tue Oct 12, 2010 3:15 pm    Post subject: changing the SORT card
Reply with quote

We have the below control card in a year end process that has to be updated every year for the two digit year like this year 09 will be made 10.

Is there a way where we can remove the need to change the ctl card every year and parameterize the JCL some how.

Please note that we have this field available as a symbolic ... RUNYR2 = 10 which we pass from a control card that will have this value.

----------------------------------------------------------------------
INCLUDE COND=(((61,1,CH,EQ,C'Y',OR,61,1,CH,EQ,C'Z'),
AND,7,4,ZD,EQ,0000,
AND,(132,2,CH,EQ,C'09',AND,134,5,PD,NE,0)),
OR,
((61,1,CH,EQ,C'Y',OR,61,1,CH,EQ,C'Z'),
AND,7,4,ZD,EQ,0000,
AND,(139,2,CH,EQ,C'09',AND,141,5,PD,NE,0)))
SORT FIELDS=COPY
OUTFIL FNAMES=EXTRACTY,INCLUDE=(61,1,CH,EQ,C'Y'),
OUTREC=(2,5,PD,EDIT=(TTTTTTTTT),X,7,4,66X)
OUTFIL FNAMES=EXTRACTZ,INCLUDE=(61,1,CH,EQ,C'Z'),
OUTREC=(2,5,PD,EDIT=(TTTTTTTTT),X,7,4,66X)
----------------------------------------------------------------------

The digirs in BOLD need to be changed in the Sort card every year
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Oct 12, 2010 9:37 pm    Post subject:
Reply with quote

You can use a DFSORT Symbol for the year. If you want to hardcode it, you can do it like this:

Code:

//SYMNAMES DD *
CURYR,'10'


and then use CURYR in your INCLUDE statement instead of C'10'.

If you want to get the current year from the system, you can use this:

Code:

//SYMNAMES DD *
CURYR,S'&YR2' 


If you need something based on the RUNYR value you mentioned, explain in more detail what your setup is exactly.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us