| Procedure features: |
| PROC FORMAT statement options:
|
| PICTURE statement options:
|
| LIBRARY libref |
| LOW and HIGH
keywords |
|
| Data set: |
|
This example uses a PICTURE statement to create a format that
prints the values for SALARY in the data set PROCLIB.STAFF in U.S. dollars.
 | libname proclib 'SAS-data-library-1 ';
libname library 'SAS-data-library-2'; |
options nodate pageno=1 linesize=80 pagesize=40;
 | proc format library=library; |
 | picture uscurr low-high='000,000' (mult=1.61 prefix='$');
run; |
 | proc print data=proclib.staff noobs label;
label salary='Salary in U.S. Dollars';
format salary uscurr.;
title 'PROCLIB.STAFF with a Format for the Variable Salary';
run; |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.