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 ; |
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.
Ready to level-up your skills? Choose your own adventure.