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

Display mismatching fields using SORT/ICETOOL utility


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

New User


Joined: 11 Jun 2009
Posts: 61
Location: chennai

PostPosted: Mon Sep 14, 2009 12:10 pm
Reply with quote

Hi,

I am sorry about wasting peoples time.
I assumed the delimiters which actually created the confusion.

The requirement was not very clear.
I will avoid such instances in future.

Apologies once again.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Sep 14, 2009 7:22 pm
Reply with quote

Hello,

Quote:
Apologies once again.
Not to worry - sometimes it takes a bit of a struggle to get clarification icon_smile.gif Being clear will greatly reduce the time taken to deal with a requirement.

Do you have a working solution? If you used cobol, you could unstring bots sets of data into indivudual fields and compare these individual fields to get what you want. . .
Back to top
View user's profile Send private message
donevin

New User


Joined: 07 Jun 2005
Posts: 70
Location: South Africa

PostPosted: Tue Sep 15, 2009 2:59 pm
Reply with quote

I have to commend all and sunder with the patience you demonstrated throughout this post. I read the thread with increasing disbelief and I have to say I am really impressed by how you kept your cool.

In any case Marina, I think I did a similar thing in the past as what you are trying to do here, if my deduction is correct that you want to display the key of mismatching records as well as the field name(s) that doesn't match for that key. I used a cobol program with a little help from INSYNC, which I accept not all installations might have, to solve this problem. The first issue I had was that my copybook had more than 900 fields in it and I was NOT looking forward to typing 900 plus field names in the COBOL program.

The steps I followed were.
(1). INSYNC has got the functionality to create output for you from a copybook in the format : Fieldnames, Fieldlength, Fieldoffset. I read this output into a Working-Storage Table and sorted it by Fieldoffset.

(2). I then compared the two input records from the two input files byte by byte through a perform loop and if/when I got a mismatch, the counter i used to step through the records I then also used to do a search in the WS Table, I then extracted the field name from the WS-Table.

(3). I then wrote the keys of both records as well as the field names and the field values to output.

This saved me a lot of time and is easily adaptable to accommodate other files and in fact has been requested by other development teams besides my own in our company.
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts ICETOOL returns no records JCL & VSAM 1
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts REASON 00D70014 in load utility DB2 6
Search our Forums:

Back to Top