The SAS Output Delivery System and reporting techniques

ODS HTML

Reply
N/A
Posts: 0

ODS HTML

Hi ,

I tried to send the SAS dataset to excel in Mainframe SAS using ODS HTML. But its not working fine. And also i have tried using the EXPORT facility. But the saslog says " the Export facility is not avaiable in this os". I used the version
NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0)
, Site 0036505002.

HTMLSource code:-
-------------------------------
FILENAME OUT "&indexo1..RM81261.M&mon.&year2"
DISP=(NEW,CATLG,DELETE)
SPACE=(27998,(1500,750),RLSE) UNIT=SYSDA;
ods html FILE="&indexo1..RM81261.M&mon.&year2" Trantab=ascii;
proc print data=xlssam;
run;
ods html close;
FILENAME Repemail EMAIL TO=("&emailid")
SUBJECT="⊂"
TYPE='text/html'
ATTACH=("&indexo1..RM81261.M&mon.&year2"
NAME="&indexo1..RM81261.&suppid..&mon.&year2"
extension="xls");
SAS Super FREQ
Posts: 8,745

Re: ODS HTML

Hi:
There are some known issues with SMTP mail and the mainframe.
http://support.sas.com/kb/3/691.html
http://support.sas.com/kb/17/059.html

I don't know whether you're running into those issues or whether the problem is with your invocation of ODS HTML or with your macro variable resolution.

I don't believe that Proc Export works on the mainframe, so ODS HTML or ODS CSV or ODS TAGSETS.EXCELXP may be your only choice. Here is a tip sheet on using ODS with the mainframe:
http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf (page 13)

My advice would be to contact Tech Support on this email issue.

cynthia
Super Contributor
Posts: 358

Re: ODS HTML

Hi:

We use the ExcelXP tagset on our z/OS mainframe to create spreadsheets and then e-mail them without problems.

I think you need to add the "Content Type" to the email options:

EXT="XLS" CT="application/octet-stream"

Remember that the file on the mainframe is in ASCII not EBCDIC so opening the file there will show garbage. You really have to download the file in binary and then open it on your PC to read it correctly.
Ask a Question
Discussion stats
  • 2 replies
  • 157 views
  • 0 likes
  • 3 in conversation