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
 

 

Compare two files - Populating the Mismatch

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

Active User


Joined: 20 Sep 2008
Posts: 102
Location: Bangalore

PostPosted: Wed Dec 30, 2009 12:12 am    Post subject: Compare two files - Populating the Mismatch
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 Moderator


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

PostPosted: Wed Dec 30, 2009 11:46 pm    Post subject:
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    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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm


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