On Fri, 14 Jan 2005 21:19:28 -0500, Ron Sverdlove
<email@hidden> wrote:
Marize,
The FILEOPT specifier is non-standard. Since standard Fortran 77 did
not have a way to open a file for appending, some compilers, such as the
Sun compilers, accepted this form as an extension. The standard
specifier for this purpose in Fortran 90 and later is:
POSITION='APPEND' .
By the way, FILE=FILE(NC:) looks odd. The FILE specifier should be set
equal to a character _expression_, but FILE(NC:) is a character array
_expression_: all elements of the FILE array from position NC to the end.
Ron Sverdlove
Hi,
Thanks for the prompt replies.
Ron, your sugestion got me on the right track. f77 didn't like
POSITION='APPEND'. But, if
one defines ACCESS='append' it all comes together.That is,
<code>
OPEN(OLU,FILE=FILE(NC:),STATUS=STAT,ACCESS='APPEND',
& FILEOPT='EOF',IOSTAT=IOS)
</code>
Many thanks,