Software Archive
Read-only legacy content
17061 Discussions

forrtl: severe (22): input record too long

michael_a1
Beginner
418 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
418 Views
You also sent this to vf-support, where I replied that you need to turn on the option Compatibility..PowerStation..I/O Format.

Steve
0 Kudos
Reply