Hi,
I have macros string1, string2, string3 declared and initialized in code and I want to send the control to a labeled section which will put them in a message box. However, the do loop in the message box is unable to retrieve the value of macro variable by using the statement:-
commandlist=insertc(commandlist,string!!i,i);
here is the main part of the code:-
%let string1; %let string2; %let string3;
%let n;
if anyspace(selpath)
then do;
string1="Path Should Not Contain Blank Spaces"; string2="select another path";
n=1;
link errormsg;
tmp_lstbtn._cursor();
return;
end;
errormsg:
commandlist=makelist();
do i=1 to n;
commandlist=insertc(commandlist,string!!i,i);
end;
command=messagebox(commandlist,'S','O',"ERROR: Header Generator");
commandlist=dellist(commandlist);
return;
Please suggest a method to get the string values iteratively so that it could be inserted int he list.
... View more