View previous topic :: View next topic
|
Author |
Message |
jemonthomas
New User
Joined: 24 Jul 2006 Posts: 35 Location: india
|
|
|
|
i want to filter out records based on a condition as follows
END_DT IS NULL AND NBR_SHM_TYP_CD IN(1,44,0,41,2,43,9,4,5,57,10,59,60,61,62,64,65,66) AND NBR_SHM_PURP_CD IN(1,2,3,4,5,6,0)
can u suggest how to write in include statement in sort |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Suggest you post some sample records from input, expected output from them & the rules to get the output. Please tell us the RECFM & LRECL of input and output as well.
Please use BBcode when You post some input and output samples, that's rather readable, Thanks. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
And the length and format of the fields mentioned above. |
|
Back to top |
|
|
jemonthomas
New User
Joined: 24 Jul 2006 Posts: 35 Location: india
|
|
|
|
SAMPLE RECORDS
Code: |
1000 ..1999-04-25..GB000134463 ..........?.....................
1000 ..1980-01-01..GB011741002 ..........?.....................
1000 ..1980-01-01..GBGB0000280353 ..........?.....................
1000 ..1980-01-01..GBG02296120 ..........?.....................
1000 ..1980-01-01..GB907523 ..........?.....................
1000 ..1980-01-01..GBEQ0011107700001000 ..........?.....................
15469519 ..2003-01-01..USMG||009P1R ..........?.....................
10000044 ..2002-04-01..DEDE0001076388 ..........?..................... |
|
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Provide full information.
What is the starting positon,length and format of fileds END_DT, NBR_SHM_TYP_CD and NBR_SHM_PURP_CD ?
Show us sample output also for ur creteria. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Also, tell us what you mean by "NULL", and explain the conditions you want to use in English (not in some programming language that you understand but others don't). We're happy to help, but we shouldn't have to guess at what you want to do. |
|
Back to top |
|
|
|