Hi Cynthia,
in my case I have 2 rows in my dataset, but in email body only shows the first row. Could you please help?
Thanks,
Fran
I used the same code to send the contents of the dataset in the body of email. My Requirement is, I m producing a report in Mainframe, which is stored in Dataset and need to send the contents of the dataset in email. WARNING: Apparent symbolic reference CC not resolved. | ||||
NOTE: Line generated by the invoked macro "EMAIL". | ||||
5 | DATA NULL; | SET SPT.SCHEDULE.JOBS.HISTORY; | FILE OUTMAIL ; | PUT ALL=; RUN ; |
_________________________ | ||||
211 | ||||
ERROR: File WORK.SCHEDULE.DATA does not exist. | ||||
ERROR 211-185: Invalid data set name. |
SAS Macro :
%MACRO EMAIL; | ||
** SEND AN EMAIL TO INDICATE THE REPORT IS READY ; | ||
FILENAME OUTMAIL EMAIL | ||
TO=("&TO.") | ||
CC=("&CC.") | ||
FROM=("&FROM.") | ||
SUBJECT=&SUBJECT; | ||
DATA NULL; | ||
SET SPT.SCHEDULE.JOBS.HISTORY; | ||
FILE OUTMAIL ; | ||
PUT ALL=; | ||
RUN ; | ||
%MEND EMAIL ; |
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.