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

Need to compare two files with one Column


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

New User


Joined: 19 Dec 2004
Posts: 23
Location: hyderabad

PostPosted: Wed Dec 03, 2008 1:26 pm
Reply with quote

Hi,

Let me know how to do this comparision.

I need to compare two files with one Column, which is present in different positions and copy all the matched records to new output file.


Thanks,
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Dec 03, 2008 3:02 pm
Reply with quote

Hi,

Quote:
need to compare two files with one Column, which is present in different positions and copy all the matched records to new output file.


Reformat and compare your files using SPLICE/SELECT option of DFSORT.

Tell us your key field positions. Also the sample input and output files.

Also search this forum.
Back to top
View user's profile Send private message
venkatarao

New User


Joined: 19 Dec 2004
Posts: 23
Location: hyderabad

PostPosted: Wed Dec 03, 2008 6:37 pm
Reply with quote

Hi Aaru,

Both are FB Files.
File1 record length 20 bytes we need to take firest 10 bytes of account number field.

File2 record length is 200 bytes we need compare 10 bytes of starting from 21 postion.
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 03, 2008 11:09 pm
Reply with quote

venkatarao,

Show an example of the records in each input file (relevant fields only) and what you expect for output. Give the "rules" for getting from input to output. If input file1 can have duplicates within it, show that in the example. If input file2 can have duplicates within it, show that in the example. Give the starting position, length and format of all relevant fields.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top