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

Getting the below error. Can some one please help.

 

2791 filename MAIL email SUBJECT = "&process - &get_status &job" TO =(&send_to)
_

23
ERROR 23-2: Invalid option name ).

MPRINT(XXX_SEND_EMAIL): filename MAIL email SUBJECT = "JobA123 - Data Input - ERROR - Job A123" TO=(("abc@abc.com" "def@abc.com"))
FROM = "sys@abc.com" type='text/html' ;
ERROR: Error in the FILENAME statement.

1 ACCEPTED SOLUTION

Accepted Solutions
mbuchecker
Quartz | Level 8
I think you need to remove the parenthesis around &send_to as it looks like the macro variable already resolves to having those parenthesis as part of the value.
Michelle

View solution in original post

2 REPLIES 2
mbuchecker
Quartz | Level 8
I think you need to remove the parenthesis around &send_to as it looks like the macro variable already resolves to having those parenthesis as part of the value.
Michelle
KrisNori
Obsidian | Level 7

Thank you...

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 485 views
  • 0 likes
  • 2 in conversation