I have three macro variables NA1, NA2 and A, with values being empty, empty and "%NA1 %NA2" (without quatation marks), respectively:
<br />
%macro NA1; resovled NA1 %mend NA1;<br />
%macro NA2; resovled NA2 %mend NA2;<br />
%LET A=%NRSTR(%NA1 %NA2);<br />
%LET GOAL=%NRSTR(%NA1);
</p>
Now I need to get a new macro variable A1 with value %NA1 (a string of 4 characters). That is, I need to get the first part of A (before the space) and put it into another macro variable. The value of this new variable will be the same as that of the macro variable 'GOAL'.
I have tried
<br />
%LET A1=%SCAN(%SUPERQ(A), 1, ' ');<br />
%PUT %SUPERQ(GOAL);<br />
%PUT %SUPERQ(A1);<br />
but this further resovled the resulting %NA1 to
<br />
resovled NA1<br />
which is different than the GOAL variable:
<br />
%NA1<br />
</p>
Could anyone tell me how to get the first part of A?
Thanks