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

Compare two files - Populating the Mismatch


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

Active User


Joined: 20 Sep 2008
Posts: 106
Location: Bangalore

PostPosted: Wed Dec 30, 2009 12:12 am
Reply with quote

I have two files one is FB of lrecl = 80 and other as FB of Lrecl = 60.

The layout of the files are as below,

File 1

Code:

54asd1234      sdaa
54dfs1234      pokj
54pok1234      pkkj
23mkn3456      hjkl
23kok3456      rehk
98plj0789      kjhb
98juk0789      lokh


File 2

Code:


123hbfsfbm s22322 hh342b23 h1234234
445,sjdfn2343255 2
342
555werkiluvytAAAasdasd1234      asdasdas
123fsdfb ssf 3221
3453nkjfh ii4rnlki43nkkk jj
3424b23kj3b4v jh234
555sdfknythunAAAasdasd3456      sadasdasd
asdad mjsdadbasbabsd
asdbamaasdmdaa b ajddasd
555ryunhgyoklAAAasdasd0789      sadasdasd
fdsasfsdafa
sdsfasf


The conditions are,

1) Position No 6 to 15 (length = 10) in the first file should have the value =
Position no 23 to 32 ( in File 2 ) where the first 3 bit were always 555 and 14 th 16 cols are AAA.

2) There are duplicate keys (i.e 6 th to 15th ) in File 1 are there. So we should consider only one for each(e.g 1234) consider the first occurance of pos (23 to 32 ) where first three bits are 555 and the 1th to 16th are AAA. in file 2.

3) Simillarly for the second one in the file 2 we should get the second occurance in the file 2.

If we did not got the key value for the first key (File 1) in the first occurance in File 2 then the first two bytes along with the Key (e.g - 541234 ) should populate in the report or else no need to write anything.


So for the current example the output file should be empty.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed Dec 30, 2009 11:46 pm
Reply with quote

Your explanation is not at all clear. I can't figure out what you want. And your example with NO output records doesn't help.

Please show a better example of input and expected output illustrating each condition you describe for the case where you would get an output record and not get an output record, and explain which condition results in which output records and why. Include duplicate input records in your example where appropriate.

Quote:
first 3 bit were always 555


A "bit" can only be a 0 or a 1, not a 5. Do you mean the first 3 characters?
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Joining files with intermittent heade... SYNCSORT 1
No new posts INPFIL FILES, FNAMES examples SYNCSORT 7
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts JCL to merge two files side by side DFSORT/ICETOOL 3
Search our Forums:


Back to Top