WHILE/ENDWHILE Problems

Jason Snyder jmssnyder at UCDAVIS.EDU
Fri Jan 8 12:55:21 EST 2010


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'
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100108/ed59193e/attachment.html 


More information about the gradsusr mailing list