The problem is with the FX2 proc that produces an error at
compute fend= fstart + steps - 1
## SX15. Trying to Store into Constant or Expression. Called Parameter by Value?
Code: Select all
PROC fx1
option integer fstart
option integer steps 1
local integer fend
compute fend= fstart + steps - 1
disp "FX1: " %datelabel(fstart) %datelabel(fend) steps
END
PROC fx2
option integer fstart
option integer steps 1
option integer fend
if %defined(fend) .eq. 0
{ compute fend= fstart + steps - 1 }
disp "FX2: " %datelabel(fstart) %datelabel(fend) steps
END
cal 2000 1 4
all 0 2015:4
compute end2 = 2014:2
compute start = end2 + 1
compute fperiods= 6
@fx1(fstart=start,steps=fperiods)
@fx2(fstart=start,steps=fperiods)
I get the error even if the @FX2(_) command is removed and the proc is not called
FYI in some runs I get these errors too
## CP17. PROCEDURE/FUNCTION Must be Initial Statement in a Compiled Section
## CP24. PROCEDURE/FUNCTION FX2 compiled with errors. Please correct