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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
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


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