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: 2180
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


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