CSULB_STAT475_handout7

CSULB_STAT475_handout7 - STAT 475 Chapters 4, 10 CREATING...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT 475 Chapters 4, 10 CREATING LIST REPORTS By default, SAS produces a traditional listing output. A more presentable style of SAS output is HyperText Markup Language ( HTML) output . Traditional Listing Output HTML Output SAS uses Output Delivery System (ODS) statement to generate an HTML output. The syntax is ODS HTML BODY= 'html-file-pathname '; SAS procedures ODS HTML CLOSE; Example. The following program creates the HTML output above. data exercise; input ID $ Age ActLevel $ Sex $; cards; 2810 61 MOD F 2804 38 HIGH F 2807 42 LOW M 2816 26 HIGH M 2833 32 MOD F 2823 29 HIGH M ; 1 ID Age ActLevel Sex 2810 61 MOD F 2804 38 HIGH F 2807 42 LOW M 2816 26 HIGH M 2833 32 MOD F 2823 29 HIGH M Act ID Age Level Sex 2810 61 MOD F 2804 38 HIGH F 2807 42 LOW M 2816 26 HIGH M 2833 32 MOD F 2823 29 HIGH M
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ods html body='G:\stat475F10\outdata.html'; title; options nonumber nodate; proc print noobs; run; ods html close; In fact, this program produces the traditional SAS listing output in the SAS “Output ” window, the HTML output in file outdata.html on G-drive, the HTML output in the SAS “Results Viewer-SAS Output” window. To suppress the traditional SAS listing output and produce only the HTML output, type ODS LISTING CLOSE; ODS HTML BODY= 'html-file-pathname '; SAS procedures ODS HTML CLOSE; ODS LISTING; Example. In the above example, type ods listing close; ods html body='G:\stat475F10\outdata.html'; title; options nonumber nodate; proc print noobs; run; ods html close; ods listing; No traditional SAS listing output is created in the “Output” window (Verify!). 2
Background image of page 2
MODIFYING LIST REPORTS Several basic statements are often useful for modification of list reports. As example, we will consider only HTML outputs, even thought the same manipulations are valid for traditional SAS listing outputs. Recall that we studied how to add variable labels, titles, footnotes, remove Obs column, time, date, and page number. Example. In the exercise example, after the DATA statement, type ods listing close; ods html body='G:\stat475F10\outdata.html'; title 'Exercise Data Set'; footnote 'HTML output'; options nonumber nodate; proc print noobs label; label ActLevel='Activity Level'; run; ods html close;
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 12

CSULB_STAT475_handout7 - STAT 475 Chapters 4, 10 CREATING...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online