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
Diamond | Level 26
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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1316 views
  • 0 likes
  • 2 in conversation