Help using Base SAS procedures

PROC FCMP and RUN_MACRO function

Reply
N/A
Posts: 0

PROC FCMP and RUN_MACRO function

Is there any way to see the log generated by a macro executed using run_macro?
Valued Guide
Posts: 2,174

Re: PROC FCMP and RUN_MACRO function

zBig
I'm not sure what logging you hope for.
what have you tried?
I tried the example in the online doc and repeated the final step using the usual macro debugging options
679 option symbolgen mlogic mprint;
680 data _null_;
681 a = 5.3;
682 b = 0.7;
683 p = .;
684 p = subtract_macro(a, b);
685 put p=;
686 run;

MLOGIC(TESTMACRO): Beginning execution.
MLOGIC(TESTMACRO): %LET (variable name is P)
SYMBOLGEN: Macro variable A resolves to 5.3
SYMBOLGEN: Macro variable B resolves to 0.7
MLOGIC(TESTMACRO): Ending execution.
p=4.6
NOTE: DATA statement used
N/A
Posts: 0

Re: PROC FCMP and RUN_MACRO function

Thanks for reply. I mean the full "normal" log, with e.g. all notes like
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.00 seconds
Within the macro which is executed via run_macro you can have several datasteps/proc calls. I need to see all what is reported to normal log in such situation.
Ask a Question
Discussion stats
  • 2 replies
  • 100 views
  • 0 likes
  • 2 in conversation