Hi,
I have an issue with combining proc iml, if/then and call symputx. If I run the following code :

proc iml;

call symputx("noif",3);
%put &noif; /* works*/
a=1;
if a=1 then call symputx("withif",1);
%put &withif; /* doesn't work */
quit;
%put &withif; /* woks */

it appears that "noif" works well inside the proc iml whereas "withif" is only properly read after the quit statement. Is there a proper way to conditionally define a macro-variable inside a proc iml ?

Thank you very much,

Vincent.