Positions the file pointer at the end of the file when data is written after an OPEN statement with no POSITION= specifier and the corresponding STATUS= value (OLD or UNKNOWN) is specified.
The position becomes APPEND when the first I/O operation moves the file pointer if that I/O operation is a WRITE or PRINT statement. If it is a BACKSPACE, ENDFILE, READ, or REWIND statement instead, the position is REWIND.
>>- -q--position--=--+-appendold-----+------------------------->< '-appendunknown-'
@PROCESS:
@PROCESS POSITION({APPENDOLD | APPENDUNKNOWN} …)
In the following example, OPEN statements that do not specify a POSITION= specifier, but specify STATUS='old' will open the file as if POSITION='append' was specified.
xlf95 -qposition=appendold opens_old_files.f
xlf95 -qposition=appendunknown opens_unknown_files.f
xlf95 -qposition=appendold:appendunknown opens_many_files.f