BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Maisha_Huq
Quartz | Level 8

Hi,

I have a program which outputs two emails. Without having changed the macro/code relevant to the program, however, I receive the following error:

 

"ERROR: Email: Permission is denied.".

 

Any thoughts why this may be? Should I provide more information?

 

Thanks in advance!

 

--

some code:

 

 

%macro from_email;

%global from_email;

%if "&sysuserid."="ShivjiA" %then %let from_email=Azim Shivji <azim_shivji@abtassoc.com>;

%else %if "&sysuserid."="HuqM" %then %let from_email=Maisha Huq <maisha_huq@abtassoc.com>;

%else %let from_email=noreply@abtassoc.com;

%mend from_email;

%from_email;

%put &from_email.;

 

options nodate nocenter;

options emailackwait=210;

* ^ http://support.sas.com/documentation/cdl/en/lesysoptsref/68023/HTML/default/viewer.htm#n1s3ofo2vn63b...

ods listing close;

title;

footnote;

ods escapechar='^';

%macro email(to_email,to_name,to_reference);

filename outbox email

to=("&to_email.")

type="text/html"

subject="AHAR QC Report"

from="&from_email."

sender="&from_email."

replyto="&from_email."

bcc=("&from_email.")

 ;

ods html body=outbox style=journal rs=none options(pagebreak='no');

proc odstext;

p "Hi &to_name.,";

p " ";

p "XXX.";

p " ";

 

run;

ods html close;

%mend email;

%email( to_email=XXX@gmail.com,

to_name=XXX,

to_reference=%str(XX, XX)

);

%email( to_email=XXX@gmail.com,

to_name=XX,

to_reference=%str(XX, XX)

);

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16
Please use the below procedure to check if the sas license has expired or not.

proc setinit;
run;

when executed you will get all the details of sas expiration dates in the log.
Thanks,
Jag

View solution in original post

3 REPLIES 3
Jagadishkatam
Amethyst | Level 16
Please check if you are using the licensed sas version. if the license is expired then we get such error.
Thanks,
Jag
Maisha_Huq
Quartz | Level 8
Thanks, Jag -- How would I check the license expiry? The program didn't have an error yesterday
Jagadishkatam
Amethyst | Level 16
Please use the below procedure to check if the sas license has expired or not.

proc setinit;
run;

when executed you will get all the details of sas expiration dates in the log.
Thanks,
Jag

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
  • 3 replies
  • 2124 views
  • 1 like
  • 2 in conversation