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...

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1035 views
  • 0 likes
  • 2 in conversation