Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sort condition to filter out records based on a condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Sort condition to filter out records based on a condition
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

Senior Member


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

PostPosted: Mon Mar 23, 2009 12:19 pm    Post subject:
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: 2284
Location: @my desk

PostPosted: Mon Mar 23, 2009 12:22 pm    Post subject:
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    Post subject: Reply to: Sort condition to filter out records based on a co
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: 356
Location: New York

PostPosted: Mon Mar 23, 2009 2:13 pm    Post subject:
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 Moderator


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

PostPosted: Mon Mar 23, 2009 9:17 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us