Skip to Main Content
Base SAS 9.4 Procedures Guide, Third Edition
book

Base SAS 9.4 Procedures Guide, Third Edition

by SAS Institute
August 2014
Intermediate to advanced content levelIntermediate to advanced
2218 pages
209h 16m
English
SAS Institute
Content preview from Base SAS 9.4 Procedures Guide, Third Edition
Details
This example does the following tasks:
prefixes the formatted value with a specified character
fills the leading blanks with a specified character
shows the interaction between the FILL= and PREFIX= options
Program
data pay;
input Name $ MonthlySalary;
datalines;
Liu 1259.45
Lars 1289.33
Kim 1439.02
Wendy 1675.21
Alex 1623.73
;
proc format;
picture salary low-high='00,000,000.00' (fill='*' prefix='$');
run;
proc print data=pay noobs;
format monthlysalary salary.;
title 'Printing Salaries for a Check';
run;
Program Description
Create the PAY data set. The PAY data set contains the monthly salary for each
employee.
data pay;
input Name $ MonthlySalary; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Base SAS 9.4 Procedures Guide, Second Edition

Base SAS 9.4 Procedures Guide, Second Edition

SAS Documentation
Oracle® Database 10g Insider Solutions

Oracle® Database 10g Insider Solutions

Arun Kumar R., John Kanagaraj, Richard Stroupe

Publisher Resources

ISBN: 9781629593043