This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Base SAS Procedures Biostat M403B/Epid M403 Page 1 Winter 2005 BASE SAS PROCEDURES 1. Using Base SAS procedures (PROCs) • All procedures start with a PROC statement, followed by the name of procedure. – Options can be specified with each PROC statement, and they are unique to each procedure. If options are not specified, default values are used. – Option DATA= input-data-set can be specified in all PROC statements. If it is not specified, the last (most recent) SAS dataset created will be used in the calculation. • TITLE and FOOTNOTE statements – Titles and footnotes can be added to the SAS output to enhance the presentation. Titles are printed at the top of each page, and footnotes are printed at the bottom of each page of output. If nothing is specified, the default title “The SAS System” and default footnote, a blank line, are printed on each page of output. Use TITLE and FOOTNOTE statements for your own output, and they can be specified in any procedures with printout. – Up to 10 title lines and 10 footnote lines can be specified, and each title/footnote line is identified by appending numbers to the end of keywords TITLE or FOOTNOTE . For example, TITLE ‘Biostat/Epid M403B Assignment 2'; TITLE1 ‘Biostat/Epid M403B'; TITLE3 ‘Assignment 2'; A blank title/footnote line can be added by skipping the title/footnote number. In the above example, the second title line is blank (a blank line between TITLE1 and TITLE3 ) because TITLE2 is not specified. – TITLE and FOOTNOTE statements can be included multiple times and can appear at any place in a SAS program. Titles and footnotes remain in effect until the end of current SAS session, or a new title/footnote statement is specified. When a new top level title/footnote statement is specified, all subsequent title/footnote statements are cancelled. To simply cancel all titles/footnotes, type “ TITLE; ” or “ FOOTNOTE; ”. Base SAS Procedures Biostat M403B/Epid M403 Page 2 Winter 2005 • OPTIONS statement – OPTIONS statements can be used to specify or change SAS system options. – For example, the following options can be specified to adjust the contents and location of titles/footnotes: NODATE can suppress the printing of date and time in the title; NONUMBER can suppress the printing of page number in the title; PAGENO =x can be used to specify the starting page number of the printout in the title; NOCENTER can print titles (and all printout) left justified. – OPTIONS statements can be included multiple times and can appear at any place in a SAS program, except within DATA and PROC steps. Specified options remain in effect until the end of current SAS session, or a new option is specified....
View Full Document
This note was uploaded on 09/25/2011 for the course STP 452 taught by Professor Yen during the Fall '10 term at ASU.
- Fall '10