WHILE/ENDWHILE Problems

Joe Pietrowicz pietrowicz at ZEDXINC.COM
Fri Jan 8 16:33:08 EST 2010


Jason,

Please check the section on defining variables
http://www.iges.org/grads/gadoc/gadocindex.html
You need
define varname = expression
you have
define varname

Joe Pietrowicz

----- Original Message -----
From: "Kristen Briggs" <kbriggs at FSU.EDU>
To: GRADSUSR at LIST.CINECA.IT
Sent: Friday, January 8, 2010 2:48:15 PM GMT -05:00 US/Canada Eastern
Subject: Re: WHILE/ENDWHILE Problems

I assume you've tried the script with "endwhile" not in caps?  GrADS doesn't seem case-sensitive on my machine, but this script is so basic I can't see anything else that could possibly be wrong??!

----- Original Message -----
From: Jason Snyder <jmssnyder at UCDAVIS.EDU>
Date: Friday, January 8, 2010 2:07 pm
Subject: Re: WHILE/ENDWHILE Problems
To: GRADSUSR at LIST.CINECA.IT

> I attached the script with the problem so you cod look at the 
> spacing on the
> script but I am continuing to have problems with the While/Endwhile 
> loop.
> Thanks,
> 
> Jason
> 
> On Fri, Jan 8, 2010 at 10:06 AM, James T. Potemra <jimp at hawaii.edu> 
> wrote:
> > Hi Jason:
> >
> > This looks okay to me in terms of the while loop, however line 5 
> doesn't> really do anything.  In fact. that line should give an 
> error like "name to
> > long missing =" (the syntax is define newvar=something).  Is this 
> really the
> > entire script?
> >
> > Jim
> >
> > Jason Snyder wrote:
> >
> >> To Whom it May Concern,
> >>  I tried posting onto onto the GRADS users group website and 
> cannot access
> >> it so I decided to post my question here.
> >>  I am trying to do the while loop with the script below:
> >>  'sdfopen uwndavg2001.nc <http://uwndavg2001.nc>'
> >>
> >> count=1
> >> while (count < 10)
> >>    'set t 'count
> >>    'define uwndavg'
> >> count = count + 1
> >> endwhile
> >>  however, I keep getting this error when running this script:
> >>  unable to locate ENDWHILE statement for the WHILE statement at 
> line 3.  I
> >> have endwhile statement so I am not sure what is going on with 
> this script.
> >>  Can you help me with it?
> >>  Thanks,
> >>  Jason
> >>
> >>
> >
> 



More information about the gradsusr mailing list