Hi @touwen_k ,
Thank you for trying it out.
I copied your code and got the following output. At first, PROC_PYPATH didn't resolve since it wasn't declared as global. I mentioned this as global in the docstring but didn't explicitly add a %global PROC_PYPATH statement, thank you for pointing it out.
Regardless of above, the values of the two macro variables do show up in the log. A suggestion would be to show them as notes, as below, in order to make them more prominent.
%put NOTE: The value of error_flag is &error_flag ;
%put NOTE: &error_desc ;
If you do not observe anything in the log, I'd suggest 'breaking the macro' and running the statements in smaller blocks. Starting with the top level if block and then getting into the nested blocks. Let me know in case of any help. Sundaresh.sankaran@sas.com
Log when PROC_PYPATH was not declared as global:
Log when PROC_PYPATH is declared as global:
... View more