View previous topic :: View next topic
|
Author |
Message |
tanguduk Warnings : 1 New User
Joined: 29 Aug 2005 Posts: 14
|
|
|
|
Hi ,
I wanted to include records based on the date field like, I want the records which are less than '1995-01-01'. How to achieve this . Please suggest.
Regards
kiran |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What record format is the input file.
Where in the input file are the date records.
What format are the date records stored in.
What happens to the records omitted from the sort. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
is file VB or FB ?
what is LRECL ?
is the date field in a set position ?
is the date field in the format of YYYY-MM-DD ?
Some data examples would not go astray.
Gerry |
|
Back to top |
|
|
tanguduk Warnings : 1 New User
Joined: 29 Aug 2005 Posts: 14
|
|
|
|
Hi,
Its a FB format , and record length is 125, and the postion of the date positon in the file is 56 format is yyyy-mm-dd. I want the records which are less than '1995-01-01' this date
Regards
Kiran |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What have you coded and what were the results ? |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Code the following condition.
Code: |
OPTION COPY
INCLUDE COND=(56,10,CH,LT,C'1995-01-01')
|
|
|
Back to top |
|
|
tanguduk Warnings : 1 New User
Joined: 29 Aug 2005 Posts: 14
|
|
|
|
i have got the results thank you |
|
Back to top |
|
|
|