IBM 5110 User Manual page 106

Apl
Table of Contents

Advertisement

The fourth step is to print the report. This might be done several
ways; for example:
• Join the heading and the body and then print the entire report.
REPORT~HEAD,[l]BODY
• Use a user-defined function to print out the report. For example:
VREPORT[[lJ'V'
V R
EJ; cHrf--
[:L]
HEAir-·· . . ·
[2J
B()DY~-
«(;) 0
l'
PART) "
" NAME
[3J
BODY~BODY,
8 0 9 0 12 2 8 0
,DATA
[4]
B()DY~B()DY,REORDERFLAG
[5]
BODY[;36J~'$'
£: 1.)::1
BODY
V
Now, when the report is printed, it looks like this:
REPORT
PART
QUANTITY
COST
NUMBER NAME
I N·_·STOCK ON .... ORDER PER PART
:392'+ 0:1.
SCREW
1000
0
$
.02
39240~!
NUT
1000
0
$
.01
39::.~4-
0
3
WASHER
5000
2000
$
.Ol.
~592404-
CONTACT
0
0
$
.50
:'59~~L~
0 5
LEAD
20
500
$
1.03
3924-06
POST
'+00
0
$
2.72
392'+07
CRT
500
200
$
136.
~59
REORDER
fJTY
FLAG
:1.000
1000
2000
~!
000
iE-*')f**
~:iO
0
500*****
200
Printer Control
101

Advertisement

Table of Contents
loading

Table of Contents