Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compare two data list

Status
Not open for further replies.

physast

Technical User
Feb 6, 2008
1
US
I am trying to compare two separate data list contained in ASCII files. I have written a do loop to read the data into arrays.
DO i=1,999
READ (11,*) x, y, z
READ (12,*) xx, yy, zz
ENDDO

The problem I am having is when I make a IF statement to compare the data it will only compare row1 of file one to row2 of file2 and so on. I want to be able to compare row1 of file1 to all rows in file2 and so on to compare ALL data to each other.

Any tips would be great!

Thank you
Charlie
 
Where is that compare code? Present it, please, and (may be;) we can help to correct it...
 
Some questions:
Are x, y, and z arrays or scalars? Are xx, yy, and zz deeclared the same way as x, y, and z?
Show the declarations also, as well as the compare code ArkM asked you for.

Pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top