DATA Step, Macro, Functions and more

Hiding/Masking macro variables in the log

Reply
Super Contributor
Posts: 269

Hiding/Masking macro variables in the log

Hi,

I am researching for any options or commands to hide or mask a certain set of macro variables in the log. Just wondering if anyone has suggestions?

45        +/*******ORACLE PASS THRU CONNECTION***********/

46        +

48        +%LET ORAPW=mypw; *pw needs to be in lowercase;

49        +%LET ORAPATH=myorapt;

SYMBOLGEN:  Macro variable ORAID resolves to rptusr

50        +

51        +%PUT |&ORAID|;

|myid|

SYMBOLGEN:  Macro variable ORAPW resolves to rpt124usr

52        +%PUT |&ORApw|;

|mypw|

SYMBOLGEN:  Macro variable ORAPATH resolves to URNPRR2

53        +%PUT |&ORAPATH|;

|myorapt|

This log is from a separate SAS Parms file out on the unix server in our environment. We would ideally like to put the symbolgen and mprint at the top of the SAS code then invoke this file containing the environment variables but would like to see something like this -

47        +%LET ORAID=XXXXXXXXXX; *User ID needs to be in lowercase;

51        +%PUT |&ORAID|;

|XXXXXXX|

Regular Contributor
Posts: 241

Re: Hiding/Masking macro variables in the log

Super Contributor
Posts: 269

Hiding/Masking macro variables in the log

Hi,

I saw that paper too. Thank you for the tip.

Another option is _NOLOG_ not sure how popular that is. Any one familiar with that?

Thanks,

Ask a Question
Discussion stats
  • 2 replies
  • 416 views
  • 0 likes
  • 2 in conversation