| View previous topic :: View next topic |
| Author |
Message |
walljam
Joined: 17 Apr 2007 Posts: 2
|
Posted: Tue Apr 17, 2007 7:36 am Post subject: Open Statement Syntax? |
|
|
Hi, I'm trying to compile these lines, but I keep getting this error.
PGF90-S-0034-Syntax error at or near = (FLOPEN.f: 118)
Here are the lines in question:
OPEN( UNIT=DEVNUM, FILE=DEVNAM, STATUS=CTYPE(ITYPE),
& RECL=80, BLOCKSIZE=BLKSIZE,
& FORM=FTYPE(IFRMAT), IOSTAT=IOFLAG)
Is there some kind of syntax problem in here? Any help will be greatly appreciated!
James |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Tue Apr 17, 2007 10:41 am Post subject: |
|
|
Hi James,
Remove the non-standard "BLOCKSIZE" specifier. I think this originated as an extension on VAX but it would have no meaning on Linux.
- Mat |
|
| Back to top |
|
 |
walljam
Joined: 17 Apr 2007 Posts: 2
|
Posted: Tue Apr 17, 2007 12:07 pm Post subject: |
|
|
| thanks mat! |
|
| Back to top |
|
 |
Charleston
Joined: 27 Jun 2007 Posts: 1
|
Posted: Wed Jun 27, 2007 11:28 am Post subject: PGF90-S-0034 |
|
|
I am trying to compile CALMM5 and I am getting this error:
PGF90-S-0034-Syntax error at or near = (calmm5.v3.f: 126)
0 inform, 0 warnings, 1 severes, 0 fatal for calmm5
Line 126 of calmm5.v3.f corresponds to:
open (io3,defaultfile=inpath,file=infile(iin)
& form='unformatted',status='old',iostat=iost3)
Thanks |
|
| Back to top |
|
 |
hongyon2
Joined: 02 Oct 2006 Posts: 22
|
Posted: Wed Jun 27, 2007 2:52 pm Post subject: |
|
|
Hi Charleston,
Please remove defaultfile=inpath as PGI does not support this. defaultfile provides a path to specifier 'file=infile(iin)'. Unfortunately, We have calmm5 version 2.6 only and it does not have defaultfile option in source code.
I think what you can do is give a full pathname to specifier 'file'.
Hongyon |
|
| Back to top |
|
 |
|