Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us