CSULB_STAT475_handout6

CSULB_STAT475_handout6 - STAT 475 Chapters 2, 4 MODIFYING...

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

View Full Document Right Arrow Icon
STAT 475 Chapters 2, 4 MODIFYING DEFAULT SAS OUTPUT A default SAS output contains a title ‘The SAS System’, a header with date, time, and page number, a column Obs with observation numbers. Example. Consider the following SAS code. 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 ; proc print data=exercise; run; A complete SAS output looks like this: observation # default title time and date page # 1 The SAS System 08:36 Tuesday, July 13, 2010 1 Act Obs ID Age Level Sex 1 2810 61 MOD F 2 2804 38 HIGH F 3 2807 42 LOW M 4 2816 26 HIGH M 5 2833 32 MOD F 6 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
OPTIONS STATEMENT To modify these system settings, an OPTIONS statement is used. The syntax of this statement is OPTIONS options ; where options are: nonumber (suppresses page number) nodate (suppresses date and time) pageno= n (changes beginning page number to n ) pagesize= n (sets page length to n lines, 15 n ) linesize= n (sets page width to n characters, 256 64 n ) firstobs= n (sets the first observation to be processed to n ) obs= n (sets the last observation to be processed to n ) Example. In the exercise example, add the options statement options nonumber nodate firstobs=2 obs=5; proc print data=exercise; run; These options specify that page number, time and date are not to be displayed, the first printed observation to be #2, and the last printed observation to be #5. The complete SAS
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/14/2011 for the course STAT 475 taught by Professor Olgak during the Fall '11 term at CSU Long Beach.

Page1 / 7

CSULB_STAT475_handout6 - STAT 475 Chapters 2, 4 MODIFYING...

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

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