View previous topic :: View next topic |
Author |
Message |
dragone_007 Beginner
Joined: 18 Mar 2008 Posts: 24 Topics: 6
|
Posted: Mon May 25, 2009 5:37 am Post subject: DATE Sort operation Help needed ! |
|
|
Hello to everyone,
I tryed the following SORT card for selecting records wich are equivalent to TOD's date minus 7 days but didn't worked. Gives me nothing in Output. Can anyone help me out ? Thanks a lot in advance.
Code: |
//SORTIN DD *
DENIS 090505
JOHNNY 090515
DENIS 090516
JOHNNY 090520
DENIS 090525
PAOLO 090518
DENIS 090518
MIRKO 090519
DENIS 090517
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INCLUDE COND=(10,6,Y2W,EQ,Y'DATE1'-7)
|
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon May 25, 2009 9:56 am Post subject: |
|
|
dragone_007,
Y2W is of the format xxxxYY , ie the year is at the end , but looks like your data has the YY in the beginning which is Y2T format(YYxxxx )
so change your Include cond to
Code: |
INCLUDE COND=(10,6,Y2T,EQ,Y'DATE1'-7)
|
_________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
dragone_007 Beginner
Joined: 18 Mar 2008 Posts: 24 Topics: 6
|
Posted: Mon May 25, 2009 10:52 am Post subject: |
|
|
Thanks a lot for your prompt response kolusu, I tryed it with Y2T format and worked fine. Very helpful.
Best regards |
|
Back to top |
|
|
|
|