View previous topic :: View next topic
|
Author |
Message |
Senthilkumar k Warnings : 1 New User
Joined: 07 May 2009 Posts: 51 Location: Chennai
|
|
|
|
Please find the below files,
File1,
aaaaaa1234erytryuur
aaaaaa3456jkhjkhjkhj
aaaaaa5675dfgdfhdfhh
File2,
bbbbbbrtytruru
aaaaaartyutryu
cccccccytutyuity
i need to compare these two files and my output should be,
file3,
aaaaaa1234erytryuur
aaaaaa3456jkhjkhjkhj
aaaaaa5675dfgdfhdfhh
i am comparing the first file 6bytes with second file 6bytes. if its matches then needs to write file1 details into file3.
Any one help please |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Please supply RECFM and LRECL for both input files.
Are there duplicate records in file2. |
|
Back to top |
|
|
Senthilkumar k Warnings : 1 New User
Joined: 07 May 2009 Posts: 51 Location: Chennai
|
|
|
|
NO duplicate records in File2.........
two files are KSDS... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Fixed length records or variable length records, LRECL of the files. |
|
Back to top |
|
|
Senthilkumar k Warnings : 1 New User
Joined: 07 May 2009 Posts: 51 Location: Chennai
|
|
|
|
Sorry for that its VB... |
|
Back to top |
|
|
Senthilkumar k Warnings : 1 New User
Joined: 07 May 2009 Posts: 51 Location: Chennai
|
|
|
|
LRECL is 27994 for both files |
|
Back to top |
|
|
Mazahar
New User
Joined: 11 Dec 2007 Posts: 82 Location: hyderabad
|
|
Back to top |
|
|
Senthilkumar k Warnings : 1 New User
Joined: 07 May 2009 Posts: 51 Location: Chennai
|
|
|
|
Thanks for your reply....I will check and let you know... |
|
Back to top |
|
|
|