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
 

 

How to use sort/ICETOOL to match 2 fields between same file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rally

New User


Joined: 28 Jul 2005
Posts: 37

PostPosted: Fri Jan 26, 2007 5:31 am    Post subject: How to use sort/ICETOOL to match 2 fields between same file
Reply with quote

ie. FILE A layout as below:

ABCDE12C4

we need find all rcords with same value for offset 3 and offset 7.

can we do complete this function use SORT ?

Thanks.
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Jan 26, 2007 5:40 am    Post subject: Re: How to use sort/ICETOOL to match 2 fields between same f
Reply with quote

rally wrote:
ie. FILE A layout as below:
ABCDE12C4
we need find all rcords with same value for offset 3 and offset 7.
Do you want to just include/omit records with a 'C' in byte 2 and/or a '2' in byte 7?
My confusion is a lack of information.... icon_sad.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 26, 2007 5:43 am    Post subject:
Reply with quote

Hello,

Please post more records for the "input" as well as the expected output record(s).
Back to top
View user's profile Send private message
rally

New User


Joined: 28 Jul 2005
Posts: 37

PostPosted: Thu Feb 01, 2007 8:56 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Please post more records for the "input" as well as the expected output record(s).


Possible input file :

ABCDE12C4
AAAAA22C2
BBBBB33B3
UUUUU44U4
VVVVV55E5

Expected output :(all records with byte 3 equal byte 8)
ABCDE12C4
BBBBB33B3
UUUUU44U4
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Feb 01, 2007 9:18 pm    Post subject:
Reply with quote

rally wrote:
Expected output :(all records with byte 3 equal byte 8)
Finally, yes, you can do that with sort. Use an INCLUDE where the logical expression for the COND is 3,1,CH,EQ,8,1,CH.

Do you need more?
Back to top
View user's profile Send private message
rally

New User


Joined: 28 Jul 2005
Posts: 37

PostPosted: Sat Feb 03, 2007 6:13 am    Post subject:
Reply with quote

William Thompson wrote:
rally wrote:
Expected output :(all records with byte 3 equal byte 8)
Finally, yes, you can do that with sort. Use an INCLUDE where the logical expression for the COND is 3,1,CH,EQ,8,1,CH.

Do you need more?


Yes, that's what I need. Thanks.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sat Feb 03, 2007 6:33 am    Post subject:
Reply with quote

rally wrote:
Yes, that's what I need. Thanks.
And thank you very much, it does the heart good to see resolution to problems....
Thanks again for letting us know the result.

Bill
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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