BookmarkSubscribeRSS Feed
prashant_tomar
Calcite | Level 5

Hi,

 

Plese help how i will send excel attachment using WRS

 

Thanks,

Prashant Tomar

5 REPLIES 5
umeshMahajan
Fluorite | Level 6

Hi Prashant,

 

First let me nderstand what you are looking for

1. Do you need Web report to be sent as attachment?

2. Or Do you want when report run excel file should be e-mailed with attachment?

 

1. this can be done by scheduling report

2. This can be done by calling stored process in web report and which will send email.

     this will be stored process with sas code to send email.

 

Let me know what you are looking for and i can certainly help you on this

prashant_tomar
Calcite | Level 5
How I will perform this by stored process

2. This can be done by calling stored process in web report and which will send email.

     this will be stored process with sas code to send email.

 

umeshMahajan
Fluorite | Level 6
Here is sample code to send attachment via email FILENAME MailBox EMAIL 'Erik.Tilanus@planet.nl' SUBJECT='Mail message with RTF attachment'; FILENAME rtffile 'e:\testlist.rtf'; ODS LISTING CLOSE; ODS RTF FILE=rtffile; DATA _NULL_; FILE PRINT; PUT "This is my report"; RUN; ODS RTF CLOSE; ODS LISTING; DATA _NULL_; attachment=FINFO(FOPEN('rtffile'),'File Name'); FILE MailBox; PUT "attached you find the report"; PUT '!EM_ATTACH!' attachment; RUN; use this code to create sas stored process to create sas stored process follow this http://support.sas.com/resources/papers/proceedings13/148-2013.pdf and to incluse stp in web report studio follow this https://support.sas.com/documentation/cdl/en/citug/61084/HTML/default/viewer.htm#n1j00mg53d0evfn1t08... and you are done 🙂
prashant_tomar
Calcite | Level 5

Report was already creadted in WRS and wana send report with excel attachment

Madelyn_SAS
SAS Super FREQ

This topic in the SAS Web Report Studio User's Guide explains your options for exporting to Excel.

 

http://support.sas.com/documentation/cdl/en/citug/65926/HTML/default/viewer.htm#p1rwzvqm7l9f9dn1hx7w...

 

You cannot directly email a report as an Excel file. You can email a link to a report snapshot, or you can distribute the report as a PDF.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 5 replies
  • 1258 views
  • 0 likes
  • 3 in conversation