PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Open Statement Syntax?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
walljam



Joined: 17 Apr 2007
Posts: 2

PostPosted: Tue Apr 17, 2007 7:36 am    Post subject: Open Statement Syntax? Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6215
Location: The Portland Group Inc.

PostPosted: Tue Apr 17, 2007 10:41 am    Post subject: Reply with quote

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
View user's profile
walljam



Joined: 17 Apr 2007
Posts: 2

PostPosted: Tue Apr 17, 2007 12:07 pm    Post subject: Reply with quote

thanks mat!
Back to top
View user's profile
Charleston



Joined: 27 Jun 2007
Posts: 1

PostPosted: Wed Jun 27, 2007 11:28 am    Post subject: PGF90-S-0034 Reply with quote

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
View user's profile
hongyon2



Joined: 02 Oct 2006
Posts: 40

PostPosted: Wed Jun 27, 2007 2:52 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group