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

Set RC thru sort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1702
Location: Australia

PostPosted: Mon Aug 02, 2010 6:34 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 8
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
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top