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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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