No any result when run the script

Henrique Barbosa hmjbarbosa at GMAIL.COM
Fri Sep 30 21:46:01 EDT 2005


Hi Hui,

The problem is that you are displaying a single value
within a script.... and this doesn't work. Add these
lines to solve your problem:

'd t20'
val=subwrd(result,4)
say 'my result is = 'val

The trick is that the intrinsic function subwrd will get the 4th
word in the result line, that is what 'd t20' should be writing.
After that you can "say" the value.

[]'s
Henrique

On 9/30/05, Hui Du <huidu at ucdavis.edu> wrote:
>
> Hello,
> I have the following simple script:
> 'define
> t20=aave(ave(t2,t=613,t=736),lon=230.505,lon=252.651,lat=28.4976,lat=
> 46.6943)'
>
> 'd t20'
> by the way, I have opened my data, when I run this script, there was no
> any output However, when I type them in the command prompt, I could get
> the result.
> **************************************************************************
> ga-> define
> t20=aave(ave(t2,t=613,t=736),lon=230.505,lon=252.651,lat=28.4976,lat=
> 46.6943)
>
> Averaging. dim = 3, start = 613, end = 736
> Define memory allocation size = 4 bytes
> Name already DEFINEd: t20. Will be deleted and replaced.
> ga-> d t20
> Result value = 279.774
> ***********************************************************************
> Has anybody had this kind of problem?
> Any help will be appreciated.
> Thanks a lot
> Hui
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20050930/31c7ee6a/attachment.html 


More information about the gradsusr mailing list