needhelpwithsas
Programmer
I am working on a program delivered as PC SAS and have converted it to work on the mainframe. There are 4 macros in the program for 4 time periods. Depending on the quarter I am reporting on I call each one. The program was delievered with this within a data step
%callqtr&QTR.;
&QTR is defined as 4 (in this case) and input via a parm card. When I process the program with a hard coded 4 it works.
%callqtr4;
But when I use the symbolic as part of the macro name it does not. I am now trying this...
If QTR = 1 then do;
%callqtr1;
end;
If QTR = 2 then do;
%callqtr2;
end;
etc...
I get this error
ERROR 117-185: There was 1 unclosed DO block.
ERROR 117-185: There was 1 unclosed DO block.
ERROR 117-185: There was 1 unclosed DO block.
Any suggestions? I am new to SAS and this is driving me crazy! Also due for production and I dont want to move it with hard values.
Thanks for any help you can give!
%callqtr&QTR.;
&QTR is defined as 4 (in this case) and input via a parm card. When I process the program with a hard coded 4 it works.
%callqtr4;
But when I use the symbolic as part of the macro name it does not. I am now trying this...
If QTR = 1 then do;
%callqtr1;
end;
If QTR = 2 then do;
%callqtr2;
end;
etc...
I get this error
ERROR 117-185: There was 1 unclosed DO block.
ERROR 117-185: There was 1 unclosed DO block.
ERROR 117-185: There was 1 unclosed DO block.
Any suggestions? I am new to SAS and this is driving me crazy! Also due for production and I dont want to move it with hard values.
Thanks for any help you can give!