I've written a program (the entirety of which I can't share, unfortunately) which has an irritating quirk. All works as intended the first time it is run on a workfile, but if it is run again I get an issue where it seems like the @recode command isn't doing what I want.
Can anyone see an issue with the syntax of these recode commands? %0 is being entered as 2013Q1, 2013Q2 etc.
Code: Select all
for %scenario "All Flat" "with All"
%scenario_str = @replace(%scenario, " ", "")
m_{%scenario_str} = @recode(@date<=@dateval(%0),na,m_{%scenario_str})
m_{%scenario_str} = @recode(@date=@dateval(%0),m_all,m_{%scenario_str})
next
