We use carriage control in every single write to our output file. The first character of each line is a
1 - page feed (form feed)
+ - over write the previous line
0 - skip to the next line the write
' ' - blank, default, dont do anything
I would guess that we have 10,000 formatted writes to our output file. Changing this is going to be expensive for us. I have been thinking about it for quite a while though.
C open the output file
OPEN (UNIT = oufile,
* FILE = OUPATH,
* ACTION = 'WRITE',
* ACCESS = 'SEQUENTIAL',
* STATUS = 'UNKNOWN',
* CARRIAGECONTROL = 'YES',
* BLOCKSIZE = 80,
* FORM = 'FORMATTED',
* IOSTAT = OPERR,
* ERR = 400)
IF (KTRACE.EQ.28) WRITE (OUFILE,555)
555 FORMAT('0 JUST RETURNED FROM EQCALL, GETTING TO SUBST1----')
WRITE (OUFILE,133)
133 FORMAT ('0++++++++NEW CASE STUDY++++++++')
WRITE(OUFILE,9764) (IVDY(VTAB+IK).I ,IK=1,KEND)
9764 FORMAT(/' TRANSPORT OPTIONS',12I4)
CALL PTITLE
WRITE(OUFILE,910)
910 FORMAT ('0',5X,'STREAM THERMODYNAMIC INITIALIZATION',//
* 2X,'STREAM NUMBER',3X,'KVALUES',3X,'ENTHALPIES',3X,
* 'VAPOR DENSITY',3x,'LIQUID DENSITY',3x,'IMM COMP'/
* 2X,13('-'),3X,7('-'),3X,10('-'),3X,13('-'),3X,14('-'),
* 3x,'--------')
Our software dates back to the Univac 1108 (36 bit words) in the middle 1960s. My first port was to the CDC 7600 (60 bit words) in 1977.