surya4ug
New User
Joined: 08 Jul 2008 Posts: 62 Location: chennai
|
|
|
|
Hello,
I have an input file with a date value...
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. |
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|