Does anyone have any idea why I am getting the following error?
ERROR: Scalar cannot be converted to object of type hash.
the hash table has three columns and one row. I am loading it in a data step that has no set statement - see below:
data dataset1;
imp='TOTAL';
var1=3;
var2=4;
run;
data test;
call missing(var1,var2);
declare hash imp(dataset:"dataset1 ");
imp.defineKey('IMP');
imp.defineData("VAR1","VAR2");
imp.defineDone();
imp='TOTAL';
if imp.find() = 0 then PVIF= sum(var1, 2);
run;
can anyone advise?