Chapter Contents

Previous

Next
The FORMAT Procedure

Example 9: Filling a Picture Format


Procedure features:
PICTURE statement options:
FILL=
PREFIX=

This example


Program

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.;
   title 'Printing Salaries for a Check';
run;


Output
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.