Allin,
well, you were right in that my "naive" script had two small errors (about
xlist2 and "genr ser = time") this were no important, but the important error
was not to assign a list inside the function. OK, I get now this simple script
corrected, but my initial script (tramo-linearization) that worked perfectly
the previous week does not work now. I have been looking at it and running
line by line and I think the error now is in calling the Windows system
shell. The week before, the command
! cmd /c "..."
was working but not now.
This simple script produces an error in this line, "The system cannot find the
specified file":
--------
function tramolin(list xlist, scalar year, scalar startp)
#! cmd /c "del /Q tmp_descript"
! cmd /c "dir"
return list xlist
end function
open data9-9
list xlist = nocars Y pop
list adjlist = tramolin(xlist, 1976, 1)
--------
--
Ignacio Díaz-Emparanza
Dpto. de Economía Aplicada III (Econometría y Estadística)
UPV-EHU