two questions about scripts
simoes at ITEP.BR
Thu Feb 10 07:16:54 EST 2005
postos = 'c:\cygwin\home\administrador\file.txt'
string = read(postos)
status = sublin(string,1)
record = sublin(string,2)
here, this code work fine!
---------- Original Message -----------
From: Ethan M Greene <emgreene at FS.FED.US>
To: GRADSUSR at LIST.CINECA.IT
Sent: Wed, 9 Feb 2005 10:17:39 -0700
Subject: two questions about scripts
> I am running PCGrADS v1.8SL11 on a MSWindows 2000 platform with Cygwin
> I am encountered two problems while writing scripts.
> First, I can use the absolute value function to display data, but
[UTF-8?]> not on variables in scripts. For example, the code
[UTF-8?]> 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,
[UTF-8?]> name = test.ctl âopen âname works fine,
[UTF-8?]> dummy = read(âfilename.txtâ)
> name = sublin(result,2)
[UTF-8?]> âopen âname
[UTF-8?]> does not work (even though âsay nameâ will output the correct
> Any help would be most appreciated.
> Ethan Greene
> (970)498-1273 office
> (970)498-1212 fax
------- End of Original Message -------
More information about the gradsusr