BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Aexor
Lapis Lazuli | Level 10

We have two two coloumn in input file one contain id and one contain password.

I want to print password like ***** by masking actual value . How to do that.

 

Please help. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Astounding
PROC Star

For printing purposes, use a format.  For example:

proc format;
value $pw other='*****';
run;

proc print data=have;
var id password;
format password $pw.;
run;

View solution in original post

2 REPLIES 2
Astounding
PROC Star

For printing purposes, use a format.  For example:

proc format;
value $pw other='*****';
run;

proc print data=have;
var id password;
format password $pw.;
run;
edmar
Calcite | Level 5

Hi,

 

Run the code below on SASStudio or Enterprise Guide

 

proc pwencode in="YourPassWord";

run;

 

You find the encoded password in results starting with {SAS002}XXXXXXXXXX

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 8382 views
  • 2 likes
  • 3 in conversation