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

Sort condition to filter out records based on a condition


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jemonthomas

New User


Joined: 24 Jul 2006
Posts: 35
Location: india

PostPosted: Mon Mar 23, 2009 11:25 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 23, 2009 12:19 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Mon Mar 23, 2009 12:22 pm
Reply with quote

And the length and format of the fields mentioned above.
Back to top
View user's profile Send private message
jemonthomas

New User


Joined: 24 Jul 2006
Posts: 35
Location: india

PostPosted: Mon Mar 23, 2009 1:57 pm
Reply with quote

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
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Mon Mar 23, 2009 2:13 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Mar 23, 2009 9:17 pm
Reply with quote

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
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top