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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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