What I would like is to use the @condition procedure within another procedure that I wrote. The number of constraints should be handled flexibel, therefor I need the cards instruction ...
I have something like (I only list the relevant lines):
Code: Select all
procedure newproc
option integer constraints 1
local integer icon
local index varcon entrycon
local vec[real] valuecon
dim varcon(constraints) entrycon(constraints) valuecon(constraints)
do i=1,constraints
enter varcon(i) entrycon(i) valuecon(i)
end do i
/* Estimate a model 'olsmodel' here */
list icon = 1 to constraints
@condition(model=olsmodel,from=ftime,steps=fsteps,nosimulate,results=olsfcasts) constraints
cards varcon(icon) entrycon(icon) valuecon(icon)
If the use of cards is not possible here. Can I use any other approach?