BookmarkSubscribeRSS Feed
nileshinus
Calcite | Level 5

Hi Team,

I am facing issues with SAS Email utility when the attachment size is crossing 10 MB. 

 

The data(xml coding) is in Mainframe dataset and I am sending it to the receipients email using Email utility. I am using EXTENSION='xls'. Due to the large size of the file, the job is failing to send an email. 

When I downloaded the file manually and did SAVE AS .xlsx, its size reduced considerably. 

 

Is there any way to send the mainframe dataset with .xlsx extension as email attachment?

 

I have seen couple of posts which were talking about some macro. The macro uses Vbscript and do the conversion in Windows folder. I am not sure whether that will help for mainframe dataset as well. 

 

Please help...

 

Thanks,

NMJ

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

 

There is another discussion from today on the subject of sending Excel files via email.  Simply put, Excel is not a good medium for data transfer, nor is email which is limited in size and not secure.  I would advise you to investigate proper data transfer formats - XML, CSV, XPT etc. and validated, secure methods of shipping data such as SFTP, secure portal, secure messaging, databases etc.

 

https://communities.sas.com/t5/General-SAS-Programming/xlsb-export-problem-with-big-number-of-rows-a...

Kurt_Bremser
Super User

Do you send data or do you send a report? Data is better sent with a minimalist file format like CSV. If you have a report with formatting (eg using ODS TAGSETS.EXCELXP), then you might try to reduce the file size by compressing, if such a tool is present on your mainframe.

.XLSX is basically XML compressed with a zip algorithm. That's why your manually created xlsx was so small.

ballardw
Super User

Our IT department has at times set some sever limits on email accounts. That file would not have been sent because under those settings the total size of a users email mail-box would be exceeded. You might want to check with your IT staff if you are running into a similar situation.

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
  • 3 replies
  • 2937 views
  • 3 likes
  • 4 in conversation