Sample 25417: Report writer to produce paychecks
This sample is from the SAS Sample Library. For additional information refer to SAS Help and Online Documentation.
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: PAYCHECK */
/* TITLE: Report Writer to Produce Paychecks */
/* PRODUCT: SAS */
/* SYSTEM: ALL */
/* KEYS: REPO DATASTEP FILE PUT REPORT WRITING */
/* PROCS: */
/* DATA: */
/* */
/* SUPPORT: UPDATE: */
/* REF: */
/* MISC: */
/* */
/****************************************************************/
DATA;
INPUT NAME $1-20 ADDR $21-40 CITY $41-50 ST $51-52 ZIP $53-57
PAY; DATE='01/10/90';
CARDS;
George Washington 1010 Beltline Dr. BelstvilleMD10023 321.45
Tim Smith 321 Thistle St. Middleton OH32145 23
Zachary Taylor 654 Main St. Austin TX98765 12063.20
;
DATA _NULL_;
SET;
FILE PRINT NOTITLES;
PUT //+2 'TENTH NATIONAL BANK' /+2 '10 TENTH ST.'
/ +2 'TENPIN, TENN. 00010'
@67 DATE
//+2 'PAY TO THE ORDER OF __________________________________'
//+3 NAME / +3 ADDR / +3 CITY ST +2 ZIP
@60 PAY DOLLAR15.2
// 'THE SUM OF ' PAY : WORDS60. 'DOLLARS'
// +3 'TENPIN INDUSTRIES INC.'
+5 'AUTHORIZED SIGNATURE __________________________'
///;
RUN;
TENTH NATIONAL BANK
10 TENTH ST.
TENPIN, TENN. 00010 01/10/90
PAY TO THE ORDER OF __________________________________
George Washington
1010 Beltline Dr.
Belstville MD 10023 $321.45
THE SUM OF three hundred twenty-one and forty-five hundredths DOLLARS
TENPIN INDUSTRIES INC. AUTHORIZED SIGNATURE __________________________
TENTH NATIONAL BANK
10 TENTH ST.
TENPIN, TENN. 00010 01/10/90
PAY TO THE ORDER OF __________________________________
Tim Smith
321 Thistle St.
Middleton OH 32145 $23.00
THE SUM OF twenty-three DOLLARS
TENPIN INDUSTRIES INC. AUTHORIZED SIGNATURE __________________________
TENTH NATIONAL BANK
10 TENTH ST.
TENPIN, TENN. 00010 01/10/90
PAY TO THE ORDER OF __________________________________
Zachary Taylor
654 Main St.
Austin TX 98765 $12,063.20
THE SUM OF twelve thousand sixty-three and twenty hundredths DOLLARS
TENPIN INDUSTRIES INC. AUTHORIZED SIGNATURE __________________________
This example creates a report writer to produce paychecks.
| Type: | Sample |
| Topic: | SAS Reference ==> DATA Step Query and Reporting ==> Creating Reports ==> Non Graphical
|
| Date Modified: | 2005-12-08 11:34:45 |
| Date Created: | 2005-05-23 13:52:23 |
Operating System and Release Information
| SAS System | Base SAS | All | n/a | n/a |