I have table with 10 values to be used as input one by one in the macro. Below is the structure and table name
Table b
Column 1 Column 2
P_0 10
P_10 34
P_20 55
P_30 67
I need to rerun the following code with the above values and append the data
proc sql;
create table a1 as
select * from table a
where amount>=p_0;
proc sql;
create table a2 as
select * from table a
where amount>=p_10;
......
How can I define the macro variable and write a macro for the same in SAS
A
you didn't define. Your example table B is not used (and it has variable names with embedded spaces). – Tom