BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I am using SAS 9.1 in Z/Os platform.

Using ODS tagsets.msoffice2k i have created an excel file. How can i zip this excel file?

I want this file to be zipped and mailed. I am able to mail the excel file fine.But not able to zip it as excel instead getting some junk characters.

Kindly help
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
Using ODS MSOFFICE2K, you are NOT creating a "true, binary" Excel file. ODS MSOFFICE2K creates Microsoft "flavor" of HTML tags. Both Excel and Word know how to open and render HTML files. Calling the output file as .XLS does not make the file a true,binary Excel file. Using an extension of .XLS just fools the Windows registry into launching Excel when you double click on the file name.

I do not know how you create zip files or zip archives on the mainframe. As you have discovered, emailing the HTML file created by ODS MSOFFICE2K should work fine. If you have questions about creating a zip archive on the mainframe, you might want to work with Tech Support.

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
  • 1000 views
  • 0 likes
  • 2 in conversation