Here is the same program and output with the WIDTH option set to equal MINIMUM:
ExamplePROC PRIM DATA=MEDICAL WIDTH=MINIMUM?
Output from Example - Using the WIDTH=MINIMUM Option
Notice that the WIDTH=FULL option produces a report which takes up more room. Using this option causes PROC PRINT to use the formatted widths of variables, if supplied, or default widths if you do not supply formats (for character variables,these are the lengths of the variables as defined in the data set; for numeric variables,a width of 12 is used).Since the width of each variable is constant for all observations,reports that span more than one page all have the same total column widths.
The WIDTH=MINIMUM option uses the minimum width necessary to display the data on a given page for each column.Therefore, a multi-page report may use different column widths on different pages and the total column width may vary from page to page.This can cause a quite obvious non-uniformity in the display from page to page.
A nice compromise between the two options shown above is WIDTH=UNIFORM.If a variable is formatted,this option uses the associated format to define the column width.If a variable is not formatted,this option uses the widest data value for a variable to display all values of that variable.
The UNIFORM value usually uses narrower column widths than FULL and may use wider widths than MINIMUM,but UNIFORM has the advantage of providing the same individual column width for each variable throughout and, therefore,the same overall page column width throughout, even if the report spans multiple pages. Note that both MINIMUM and UNIFORM take a bit more CPU time than FULL (if you are concerned about such things).
Controlling the Orientation of the Column Headings
The reports so far in this chapter all have the column headings printed horizontally.In certain circumstances (when the column widths are small and the variable names are large),PROC PRINT may decide to print the column headings vertically.If you want to override the orientation of the column headings,use the PROC PRINT options HEADING=HORIZONTAL or HEADING =VERTICAL to specify the orientation.For example,to force PROC PRINT to print the column headings horizontally, write:
PROC PRINT HEADING=HORIZONTAL;
Here are some sample data to work with:
SAS Programming Related Tutorials
|SASS (Syntactically Awesome Style sheets) Tutorial||R Programming language Tutorial|
SAS Programming Related Interview Questions
|Logistics Interview Questions||SAS Programming,SQL server Interview Questions|
|Clinical SAS Interview Questions||SASS (Syntactically Awesome Style sheets) Interview Questions|
|SQL Server Analysis Services (SSAS) Interview Questions||R Programming language Interview Questions|
|SAS DI Interview Questions||Advanced SAS Interview Questions|
|Base Sas Interview Questions||SAS Macro Interview Questions|
|Clinical Data Management Interview Questions|
Sas Programming Tutorial
Input And Infile
Set, Merge, And Update
Table Lookup Tools
Proc Means And Proc Uimivariate
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.