Hello,
I have one question about sending email by SAS with sensitivity option, and could anyone please advise on it?
Here, I try to use SAS send out email with option (SENSITIVITY='Confidential'). Everything goes smooth without any error and warning message. However, the sensitivity of the email still remains as default "Internal" without changing to "Confidential".
So, could anyone please advise how to use this option correctly?
Any advice will be appreciated!
Thanks,
Weifeng
Please show the code you are using.
What version of SAS are you using?
See this note, apparently there was bug in 9.4M3 that was fixed in M4:
https://support.sas.com/kb/56/611.html
Hi Quentin,
Thanks a lot for your response! I am using SAS EG 7.15 (7.100.5.5850) (32-bit). The code is below:
filename outbox email "do.not.reply@test.com" ;
data _null_;
file outbox
to=(&to.)
from=("&from.")
sender=("&from.")
subject="&subject."
attach=("&attach1." content_type="application/txt")
type='text/html'
SENSITIVITY='Confidential'
;
set &body.;
put Body;
run;
filename outbox clear;
Thanks,
Weifeng
That's your EG version, not your SAS version. Run this to get your SAS version:
proc product_status;
run;
Hi SASKiwi,
Please find my SAS version information as below:
For Base SAS Software ...
Custom version information: 9.4_M4
Image version information: 9.04.01M4P110916
For SAS/STAT ...
Custom version information: 14.2
For SAS/GRAPH ...
Custom version information: 9.4_M4
For SAS/ETS ...
Custom version information: 14.2
For SAS/OR ...
Custom version information: 14.2
For SAS/IML ...
Custom version information: 14.2
For SAS/CONNECT ...
Custom version information: 9.4_M4
For SAS/ACCESS Interface to Netezza ...
Custom version information: 9.41
For SAS OLAP Server ...
Custom version information: 9.4
For SAS/ACCESS Interface to SAP IQ ...
Custom version information: 9.4_M3
For SAS/ACCESS to Hadoop ...
Custom version information: 9.44
For SAS Enterprise Miner ...
Custom version information: 14.2
For SAS Integration Technologies ...
Custom version information: 9.4_M4
For SAS/Secure 168-bit ...
Custom version information: 9.41_M1
2 The SAS System 11:55 Tuesday, March 7, 2023
For SAS Credit Scoring ...
Custom version information: 14.2
For High Performance Suite ...
Custom version information: 2.2_M5
For SAS/ACCESS Interface to DB2 ...
Custom version information: 9.4_M2
For SAS/ACCESS Interface to PC Files ...
Custom version information: 9.4_M4
For SAS/ACCESS Interface to ODBC ...
Custom version information: 9.4_M4
Do you get an error in your log? I think all the from/to information should be on your filename statement, not the file statement. Something like (untested):
filename outbox email
to=(&to.)
from=("&from.")
sender=("&from.")
subject="&subject."
attach=("&attach1." content_type="application/txt")
type='text/html'
SENSITIVITY='Confidential'
;
data _null_;
file outbox;
set &body.;
put Body;
run;
filename outbox clear;
If you remove the Sensitivity option, is the code working to generate the email?
Hi Quentin,
Actually, I can always get email without any error and warning, no matter including sensitivity option or not. But the problem is that the sensitivity is default value as "Internal", rather than "Confidential".
Thanks,
Weifeng
I'd suggest opening a track with SAS Tech Support on this. Assuming you are using your own user account for sending email, can you change an email's sensitivity manually within your email client?
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.