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
 

 

Set RC thru sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
surya4ug

New User


Joined: 08 Jul 2008
Posts: 62
Location: chennai

PostPosted: Sat Jul 31, 2010 1:45 am    Post subject: Set RC thru sort
Reply with quote

Hello,

I have an input file with a date value...
Code:

20100728


I want to validate it against current date and if it is 'n' days lesser than the current date, set RC = 16.

Is it possible thru sort?

I know we can set RC thru ICETOOL for empty files, dups etc..but never did it by validating a condition like 'date' using sort.

Thanks in advance.
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Aug 02, 2010 6:34 am    Post subject:
Reply with quote

Hi,

this should assist

Code:
//SORT0001 EXEC PGM=SORT                                 
//SORTIN   DD *                                         
20100728                                                 
//SYSOUT   DD SYSOUT=*                                   
//SORTOUT DD SYSOUT=*                                   
//SYSIN    DD *                                         
 OPTION COPY,NULLOUT=RC16                               
 OUTFIL OMIT=(1,8,CH,LT,DATE1-7)                         
/*                                                       


Gerry
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 -> JCL & VSAM 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