BookmarkSubscribeRSS Feed
saspert
Pyrite | Level 9

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|

2 REPLIES 2
saspert
Pyrite | Level 9

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,

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2417 views
  • 0 likes
  • 2 in conversation