Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us