BookmarkSubscribeRSS Feed
G_I_Jeff
Obsidian | Level 7

I'm trying to play around with e-mailing basic 'excel' documents from z/OS. So far I've been able to create a simple workbook with one spreadsheet saved in a PDSE member. I can browse the member and see the xml code. But when I e-mail as attachment, it comes up empty. I don't think its a problem with the ODS logic but with what type of attachment I'm trying to tell the mainframe SMTP to send.

My questions are:

  • Is e-mailing basic spreadsheets from z/OS using Base SAS possible and if so, is my code sound?
  • Is there a better way to store the xml code, possibly through Unix System Services?

Thanks.

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  When you use ODS TAGSETS.EXCELXP you are creating an XML file -- the XML file describes a Microsoft 2003 Workbook according to the Microsoft specification. Some email systems prohibit sending (and receiving) XML files. Whether your system allows emailing of XML files is a question for your company's mail group. Emailing any file from z/OS is possible, assuming that all the startup options about emailing and SAS have been set appropriately and that you have checked with your mail folks to be sure that they allow emailing of XML and that the copy of SAS that you use has the right email options set. You should check the documentation. All the system options start with "EMAIL..." () In addition, if you are creating the files in EBCDIC, you may want to create the files in ASCII, using options as shown here (SAS(R) 9.4 Companion for z/OS, Second Edition) -- this site has an example of writing ODS output to Unix System Services. Since everything about email is so specific to your operating system and setup, you might want to open a track with Tech Support for more specific help.

cynthia

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
  • 1 reply
  • 1161 views
  • 0 likes
  • 2 in conversation