Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
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'),

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:



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:



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 Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am

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