<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'><P>Another option is to make sure to put a carriage return after your Endwhile statement.</P>
<P>Grads needs to see an end-of-line marker or it will not execute the command on the last line. </P>
<P> </P>
<P>This holds true for any command at the end of the script, add an extra <CR>.<BR></P>
<DIV><FONT size=2>Thanks,<BR>Mark</FONT></DIV><BR><BR>----- Original Message -----<BR>From: "Ron Goodson [Edm]" <Ron.Goodson@EC.GC.CA><BR>To: GRADSUSR@LIST.CINECA.IT<BR>Sent: Friday, January 8, 2010 10:17:36 AM GMT -08:00 US/Canada Pacific<BR>Subject: Re: WHILE/ENDWHILE Problems<BR><BR>I'd be more inclined to search for spaces or unprintable characters at<BR>the end of the endwhile line... just in case.<BR><BR>ron<BR><BR><BR><BR><BR>-----Original Message-----<BR>From: GRADSUSR@LIST.CINECA.IT [mailto:GRADSUSR@LIST.CINECA.IT] On Behalf<BR>Of James T. Potemra<BR>Sent: January 8, 2010 11:07 AM<BR>To: GRADSUSR@LIST.CINECA.IT<BR>Subject: Re: WHILE/ENDWHILE Problems<BR><BR>Hi Jason:<BR><BR>This looks okay to me in terms of the while loop, however line 5 doesn't<BR>really do anything. In fact. that line should give an error like "name<BR>to long missing =" (the syntax is define newvar=something). Is this<BR>really the entire script?<BR><BR>Jim<BR><BR>Jason Snyder wrote:<BR>> To Whom it May Concern,<BR>> <BR>> I tried posting onto onto the GRADS users group website and cannot <BR>> access it so I decided to post my question here.<BR>> <BR>> I am trying to do the while loop with the script below:<BR>> <BR>> 'sdfopen uwndavg2001.nc <http://uwndavg2001.nc>'<BR>> count=1<BR>> while (count < 10)<BR>> 'set t 'count<BR>> 'define uwndavg'<BR>> count = count + 1<BR>> endwhile<BR>> <BR>> however, I keep getting this error when running this script:<BR>> <BR>> unable to locate ENDWHILE statement for the WHILE statement at line 3.<BR><BR>> I have endwhile statement so I am not sure what is going on with this <BR>> script. Can you help me with it?<BR>> <BR>> Thanks,<BR>> <BR>> Jason<BR>> <BR>> <BR></div></body></html>