forrtl: severe (22): input record too long

forrtl: severe (22): input record too long

I have old unformatted files written by a program compiled with MS FPowerStation. Now I try to read them with the same program compiled with VF 6.6 and get the runtime error "forrtl: severe (22): input record too long" (reading with the FPS compiled program works OK)

Variable declaration: CHARACTER REM*140, DATI*32

The files were written like this:
OPEN(1, FILE=FNM, STATUS='UNKNOWN', ACCESS='SEQUENTIAL', FORM='UNFORMATTED', ERR=998)
WRITE(1) REM,DATI

and are read like this:
OPEN(1,FILE=FNM,STATUS='OLD',FORM='UNFORMATTED',ERR=998)
READ(1) REM, DATI

Can you tell me why is this and how to fix it? - thanks

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture

You also sent this to vf-support, where I replied that you need to turn on the option Compatibility..PowerStation..I/O Format.

Steve

Steve

Login to leave a comment.