Hello %macro rrjow(x,branchP);
PROC SQL;
create table tbl_&x. as
select *
from input_data
where branchP=&branchP.
;
QUIT;
%rrjow(x=1, branchP=100);
%rrjow(x=2, branchP=200);
%rrjow(x=3,branchP=300);
%rrjow(x=4,branchP=400);
%rrjow(x=5,branchP=500); %rrjow(x=6,branchP=ALL);/*How can I run it???????*/ I want to run same piece of code again and again for different branches. I know that for this situation the best is to use Macro.(It is saving code and save time). Let's say that I want to run it for following branches: 100,200,300,400,500 and also I want to run it for all branches (list of 1000 branches). My only question is how can I run the macro for all branches ???
... View more