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

Comparing the first file 6bytes with second file 6bytes


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Mon Jun 15, 2009 3:56 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 15, 2009 4:12 pm
Reply with quote

Please supply RECFM and LRECL for both input files.
Are there duplicate records in file2.
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Mon Jun 15, 2009 4:31 pm
Reply with quote

NO duplicate records in File2.........

two files are KSDS...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 15, 2009 4:33 pm
Reply with quote

Fixed length records or variable length records, LRECL of the files.
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Mon Jun 15, 2009 4:35 pm
Reply with quote

Sorry for that its VB...
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Mon Jun 15, 2009 4:40 pm
Reply with quote

LRECL is 27994 for both files
Back to top
View user's profile Send private message
Mazahar

New User


Joined: 11 Dec 2007
Posts: 82
Location: hyderabad

PostPosted: Mon Jun 15, 2009 6:36 pm
Reply with quote

ibmmainframes.com/viewtopic.php?p=190052&highlight=#190052

Check this, Just change the record lengths and key positions.
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Mon Jun 15, 2009 7:13 pm
Reply with quote

Thanks for your reply....I will check and let you know...
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

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top