Previous Page | Next Page

The FORMAT Procedure

Example 9: Filling a Picture Format


Procedure features:

PICTURE statement options:

FILL=

PREFIX=


This example does the following:


Program

 Note about code
options nodate pageno=1 linesize=64 pagesize=40;
 Note about code
data pay;
   input Name $ MonthlySalary;
   datalines;
Liu   1259.45
Lars  1289.33
Kim   1439.02
Wendy 1675.21
Alex  1623.73
;
 Note about code
proc format;
   picture salary low-high='00,000,000.00' (fill='*' prefix='$');
run;
 Note about code
proc print data=pay noobs;
   format monthlysalary salary.;
 Note about code
   title 'Printing Salaries for a Check';
run;

Output: Listing

                 Printing Salaries for a Check                 1

                     Name     MonthlySalary

                     Liu      ****$1,259.45
                     Lars     ****$1,289.33
                     Kim      ****$1,439.02
                     Wendy    ****$1,675.21
                     Alex     ****$1,623.73

Output: HTML

[untitled graphic]

Previous Page | Next Page | Top of Page