I am trying to send email from SAS and everything is working fine and as intended when I type my actual pwd in the SAS code using EMAILPW = option. Since I do not want to use my actual pwd in the program, I created an encoded pwd using PWENCODE procedure and stored it in the file with name 'pwfile'
1) Here is the first code to create the encoded pwd
filename pwfile 'Z:\Private\pwd\pwfile.txt';
proc pwencode in='pwd' out=pwfile;
run;
Now I am using code below to use this encoded pwd but I keep on getting login failure error. Basically, SAS is not recognizing the encoded pwd correctly (as intended).
Here is the second part for email.
2)
Please provide any suggestions to correct this error.
For debugging purposes:
1: Run your program with code as simple as possible using your clear text password. Once that works:
2: Only replace the clear text password with the encoded version (not passed via a macro variable) and run again. Does this work or already fail?
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.
Ready to level-up your skills? Choose your own adventure.