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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2372 views
  • 0 likes
  • 2 in conversation