I have some data and proc report code that I want to record a pop-up macro for.
I have a list of 1000 possible numbers that can be entered and when a number is entered such as 00460, the code created pulls the data for that number only. An example of the code is this:
data one; set all13;
if code = '00460';
run;
proc sql;
create table temp as
(select distinct clm from one
where rv_cd in ('589','270','462','012'));
quit;
and the code really goes on and on to pull various information in regards to that code 00460.
When I get to the end of the code the final piece is an html output of the report that was derived from all the proc sql, data statements of this code.
What I want is to create a macro that will start with a pop-up window asking the user to enter the code they want to run the report on. So say the pop says please enter code and you enter 00100 and then the code between the macro runs all the way to the output and the user never has to do anything but input that code into the popup window. Therefore there is no need to go in and change anything in regards to the actual data. I am just trying to make this so they don't have to re-enter a new code in the actual code everytime if that is possible.