So as an example lets say that we're creating a figure for FDA submission. I'm developing an in house macro to make something like a line plot. The program the user runs to create this line plot looks like this:
data xx;
set adam.stuff;
programming stuff;
run;
other programming statements;
%glineplot(parameter stuff to make the plot);
My graphing macros will save the code they create (any prep steps, GTL code, SGRENDER code) to a separate file so that when time comes to submit to the FDA we don't have to go back and paste in the graphing macro code into the program. The FDA requires us to either nest the macro or print the code directly into the program. I'm trying to save on that step. What I can't do is collect the code prior to the macro running (data XX.... stuff above). I'm trying to find a way to extract that code and paste it into the separate file with the generated code so it includes everything in one shot.
... View more