replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - READ compile error 262 REC option not permitted with END
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

READ compile error 262 REC option not permitted with END

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Mike Cheek



Joined: 09 Jul 2008
Posts: 11
Location: Houston, TX

PostPosted: Thu Feb 04, 2010 10:36 pm    Post subject: READ compile error 262 REC option not permitted with END Reply with quote

While converting my MS Powerstation fortran 77 program using PLATO 4.3 the following fragment does not compile:

...
read(lun,fmt=100,rec=record,end=888,err=999)(alfa(i),i=1,max)
100 format(1024a1)
...

While compiling I get the message:
error 262 - The REC option is not permitted with END

I realize you can't argue with the compiler, but the .pdf documentation seems to indicate these are compatible. Everything compiled and worked under previous MS compiler. Is there something else I'm missing? Thanks in advance!
_________________
Mike Cheek
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2615
Location: Sydney

PostPosted: Fri Feb 05, 2010 3:28 am    Post subject: Reply with quote

why don't you try:

read (lun,fmt=100, rec=record, iostat=iostat) (alfa(i),i=1,max)
if (iostat /= 0) then
write (*,*) 'Error reading ',lun,' IOSTAT = ',iostat
...
end if

Find out what are the possible errors. Certainly having the value of "record" pointing past the end of the defined file will give a non-zero value for iostat. FORTRAN_ERROR_MESSAGE@ may help to understand the possible errors.
Back to top
View user's profile Send private message
JohnHorspool



Joined: 26 Sep 2005
Posts: 270
Location: Gloucestershire UK

PostPosted: Fri Feb 05, 2010 9:02 am    Post subject: Reply with quote

Mike,

Quote:
Everything compiled and worked under previous MS compiler.


I hope you appreciate that this does not mean that the MS compiler was better than Silverfrost FTN95 ! To have "END=" with a direct access file is meaningless (as John pointed out) and probably illegal, thus the MS compiler was making an error in allowing it.

John
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
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 © 2001, 2005 phpBB Group