IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

changing the SORT card


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Tue Oct 12, 2010 9:37 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top