two questions about scripts

Ethan M Greene emgreene at FS.FED.US
Wed Feb 9 12:17:39 EST 2005


Hello-

I am running PCGrADS v1.8SL11 on a MSWindows 2000 platform with Cygwin
1.5.12-1.

I am encountered two problems while writing scripts.

First, I can use the absolute value function to display data, but not on
variables in scripts. For example, the code
              ‘d abs(var)’
works, but
              x = -5
              y = abs(-5)
generates,
              Function not found: abs
              Error occurred on line 2
              In file test.gs

Second, I would like to open files were the address is a variable that I
read in from a text file. The code,
                        name = test.ctl
                        ‘open ‘name
works fine, but
                        dummy = read(‘filename.txt’)
                  name = sublin(result,2)
                        ‘open ‘name
does not work (even though ‘say name’ will output the correct address).

Any help would be most appreciated.

Ethan

Ethan Greene
(970)498-1273 office
(970)498-1212 fax



More information about the gradsusr mailing list