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 

Error: not enough variables in Data statement

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



Joined: 04 Jan 2008
Posts: 14

PostPosted: Wed Feb 06, 2008 7:02 pm    Post subject: Error: not enough variables in Data statement Reply with quote

Hi,

I have got a few questions. I am pointing it one by one..

1. When i am trying to define an integer like this
INTEGER JJ(4)/2,3,4,1/,KK(4)/3,4,1,2/
its saying "Not enough variables in DATA statement. Compilation
abandoned".

2. My code is in fixed format. I have set the compiler options in plato like
this to accept fixed format.
Tools-->Command Line Options
and there i have typed "/FIXED_FORMAT". when i tried to compile a
code its saying...
warning 61 - Line has been truncated (line is longer than 72 characters)

3. Can u please suggest whether this statement will work.
REAL* 4 ANS;
ANS .EQ. 'val'

Can u please help me with these issues.

Thanks,
Ajith.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Feb 06, 2008 8:06 pm    Post subject: Reply with quote

1. You can write this as:

Code:
      INTEGER JJ(4)/2,3,4,1/
      INTEGER KK(4)/3,4,1,2/

although this is not standard Fortran.

2. In fixed format, statements appear in "columns" 7 to 72.

3. An "=" sign is used for assignment:

ANS = 42.0

Basically you need to get a book on standard Fortran.
This forum does not aim to teach the basics of the language.
Alternatively Plato provides access to tutorial help files that may be of assistance.
Back to top
View user's profile Send private message AIM Address
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