I would like to add a CAUTION while using any passwords in a macro with MPRINT option. The replaced text that MPRINT option writes in the log does not x'hash the passwords. Try running is sample code in your SAS Editor:
=============================================
proc pwencode in="MyPassword";
run;

option mprint;
%macro PwEncode;
proc pwencode in="MyPassword";
run;
%mend PwEncode;
%PwEncode;
=============================================
Log output:
=============================================
1 proc pwencode in=XXXXXXXXXXXX;
2 run;

{SAS002}68B2795625183A1B4367CCB10DD05CCA0D02F914

NOTE: PROCEDURE PWENCODE used (Total process time):
real time 0.03 seconds
cpu time 0.00 seconds

3
4 option mprint;
5 %macro PwEncode;
6 proc pwencode in="MyPassword";
7 run;
8 %mend PwEncode;
9 %PwEncode;
MPRINT(PWENCODE): proc pwencode in="MyPassword";
MPRINT(PWENCODE): run;

{SAS002}68B2795625183A1B4367CCB10DD05CCA0D02F914

NOTE: PROCEDURE PWENCODE used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
=============================================

First proc step that is outside a macro successfully hashed the password in log but the second proc step that is inside a macro didn't.

Thanks and regards,
JNP