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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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