hi,
i have the following block of code that i was unable to use /UNDEF on under ftn32 (because of the negative address problem) but i can use /UNDEF under ftn64:
IF( IREV.GE.462 ) THEN
AZ%CHSOU(:) = ICHSOU(43:72)
AZ%CHFX(:) = ICHSOUF(43:72)
READ (NU, IOSTAT=IOS) AZ%CHSOU(43:72), AZ%CHFX(43:72)
IF( IOS.GT.0 ) THEN
IF( IREV.EQ.462 ) THEN
BACKSPACE (NU)
AZ%CHSOU(:) = ICHSOU(43:72)
AZ%CHFX(:) = ICHSOUF(43:72)
ELSE
GO TO 98
END IF
END IF
END IF
and I get an IOSTAT=158 (which indicates that there aren't enough values stored in the file being read at that record which I happen to know is because the record wasn't written originally) but before the test gets used that invokes the 'backspace' command, i get an 'UNDEFINED Variable/function' error under the 64-bit debugger on the READ statement.
I can examine all the variables involved and none of them are 'UNDEFINED', so i can only assume that the UNDEFINED values are in the internal READ function.
I imagine that, as the 'inline' !FTN95OPTIONS command isn't functioning under FTN64, i will have to split the source file and compile that particular routine without /UNDEF?
But, i wonder if there's some other 'sneaky' way for treating UNDEFINED values as 0 (or some other specific value) when they are encountered during a READ (or other internal function)?
K