29.12.2013 Views

Base SAS 9.1.3 Procedures Guide - Acsu Buffalo

Base SAS 9.1.3 Procedures Guide - Acsu Buffalo

Base SAS 9.1.3 Procedures Guide - Acsu Buffalo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The PRINT Procedure 4 Output: Listing 749<br />

Establish the column headings. The LABEL statement associates a label with the variable<br />

Region for the duration of the PROC PRINT step. When you use the LABEL option in the<br />

PROC PRINT statement, the procedure uses labels for column headings.<br />

label region=’Sales Region’;<br />

Format the columns that contain numbers and specify a title. The FORMAT statement<br />

assigns a format to Expenses and Revenues for this report. The TITLE statement specifies a<br />

title.<br />

format revenues expenses comma10.;<br />

title ’Sales Figures Grouped by Region and State’;<br />

run;<br />

Output: Listing<br />

Output 35.4<br />

Creating Separate Sections of a Report for Groups of Observations: Listing Output<br />

Sales Figures Grouped by Region and State 1<br />

------------------- Sales Region=Northern State=MA -------------------<br />

Month Expenses Revenues<br />

MAR95 1,500 1,000<br />

Number of observations for the state: 1<br />

------------------- Sales Region=Northern State=NY -------------------<br />

Month Expenses Revenues<br />

FEB95 3,000 4,000<br />

MAR95 6,000 5,000<br />

Number of observations for the state: 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!