For Programmers: Free Programming Magazines  


Home > Archive > Fortran > May 2004 > APPEND Option not recognized









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author APPEND Option not recognized
Pedro

2004-05-05, 1:41 am

Hello to all,

We are compiling a fortran code from a package in a Sun Sparc
workstation using the fortran 90 1.2 compiler and the following
command line from a Makefile:

f90 -c -fast -temp

every single program compiles except one that aborts
with the following error:

Open(20,File=Trim(FFName),ACCESS='APPEND
',Status='Old')

cf90-24 f90comp: ERROR SETACTIVE, File = setactive.f, Line = 67,
Column = 41
The character constant "APPEND ", for the I/O control information
list item ACCESS, is not allowed.

I do not understand why this is happening. APPEND is as far as know a
correct option for ACCESS but it does not go through. Changing it to
SEQUENTIAL u other option allows the program to compile but of course
this is not what we want. Does anyone know what is happening here? Any
help is appreciated. Thanks.

Pedro
Arjen Markus

2004-05-05, 3:36 am

Pedro wrote:
>
> Hello to all,
>
> We are compiling a fortran code from a package in a Sun Sparc
> workstation using the fortran 90 1.2 compiler and the following
> command line from a Makefile:
>
> f90 -c -fast -temp
>
> every single program compiles except one that aborts
> with the following error:
>
> Open(20,File=Trim(FFName),ACCESS='APPEND
',Status='Old')
>
> cf90-24 f90comp: ERROR SETACTIVE, File = setactive.f, Line = 67,
> Column = 41
> The character constant "APPEND ", for the I/O control information
> list item ACCESS, is not allowed.
>
> I do not understand why this is happening. APPEND is as far as know a
> correct option for ACCESS but it does not go through. Changing it to
> SEQUENTIAL u other option allows the program to compile but of course
> this is not what we want. Does anyone know what is happening here? Any
> help is appreciated. Thanks.
>
> Pedro


No, the correct keyword is POSITION=

Regards,

Arjen
James Van Buskirk

2004-05-05, 3:36 am

"Pedro" <somewhere@k.com> wrote in message
news:utsg90pvk1g95tda28b16g97gntuloa35c@
4ax.com...

> I do not understand why this is happening. APPEND is as far as know a
> correct option for ACCESS but it does not go through. Changing it to
> SEQUENTIAL u other option allows the program to compile but of course
> this is not what we want. Does anyone know what is happening here? Any
> help is appreciated. Thanks.


There is nothing wrong with 'APPEND'; the problem is that you need
to say POSITION = 'APPEND' rather than ACCESS = 'APPEND'. The only
expressions allowed for the ACCESS specifier are ones that after
conversion to upper case are 'SEQUENTIAL' or 'DIRECT'. The POSITION
specifier permits 'ASIS', 'REWIND', and 'APPEND'.

--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end


Tom Micevski

2004-05-05, 4:34 am

Pedro wrote:
> Hello to all,
>
> We are compiling a fortran code from a package in a Sun Sparc
> workstation using the fortran 90 1.2 compiler and the following
> command line from a Makefile:
>
> f90 -c -fast -temp
>
> every single program compiles except one that aborts
> with the following error:
>
> Open(20,File=Trim(FFName),ACCESS='APPEND
',Status='Old')
>
> cf90-24 f90comp: ERROR SETACTIVE, File = setactive.f, Line = 67,
> Column = 41
> The character constant "APPEND ", for the I/O control information
> list item ACCESS, is not allowed.
>
> I do not understand why this is happening. APPEND is as far as know a
> correct option for ACCESS but it does not go through. Changing it to
> SEQUENTIAL u other option allows the program to compile but of course
> this is not what we want. Does anyone know what is happening here? Any
> help is appreciated. Thanks.


access='append' is a nonstandard compiler extension. perhaps access='sequential',position='append' will do the job?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com