Hello,
I have the following line in a piece of code:
Print LineFMT,Line
where LineFMT is generated within the program according to the length of
Line. This has worked fine until today when a particular case gave Line with
length of 1200 characters. The program aborted with the following message:
Input/Output Error 154: Wrong length record
In Procedure: printcluster
At Line: 370
Statement: Formatted WRITE
Unit: 6
Connected To: Stdout
Form: Formatted (contains List-Directed records)
Access: Sequential
Records Read : 0
Records Written: 6
End of diagnostics
If I substitute the line by Print *,Line the program proceeds but the output to
screen is not correctly formatted. Using Write(*,LineFMT) has the same
problem. I guess that this has to do something with the default RECL for
screen output. Is there any way I can fix the problem and keep the
format? Thanks to all for
your help.
Maurizzio
|