Relative file
creating (cont’d)
random access mode, 6–30, 6–31
sequential access mode, 6–30
deleting records, 6–53
randomly, 6–54, 6–55
sequentially, 6–53, 6–54
using the DELETE statement, 6–53
design considerations, 6–13
invalid key condition, 7–2
INVALIDKEY condition, 7–2
open modes, 6–31
organization, 6–5, 6–6
advantages, 6–3
disadvantages, 6–3
specifying, 6–21
processing, 6–6, 6–31
reading, 6–38
dynamically, 6–40, 6–41
randomly, 6–40
sequentially, 6–38, 6–39
record cells, 6–6
record numbers, 6–6
rewriting records
randomly, 6–52, 6–53
sequentially, 6–50, 6–51
rewriting records in, 6–50
SELECT statements, 6–23
specifying file organization and access mode,
6–21
tables, similarity to, 6–6
updating, 6–50
using the REWRITE statement, 6–50
usage, 6–5, 6–6
valid I/O statements (tab.), 6–31
writing, 6–32
Relative indexing, 4–15
system overhead, 4–15
Relative key
definition, 6–5
Relative record number, 6–6
-relax_key_checking, 6–7
-relax_key_checking or -rkc flag, 1–13
REMAINDER phrase, 2–13
Replacement argument, 5–31
list interference in, 5–32
to inspect data, 5–31
Replacement value, 5–31
REPLACE statement
differences, B–14
Compaq COBOL for OpenVMS VAX, B–14
Compaq COBOL for OpenVMS VAX(ex.),
B–14
Compaq COBOL on OpenVMS Alpha,
B–14
Compaq COBOL on OpenVMS Alpha (ex.),
B–14
REPLACE statement
differences (cont’d)
line numbers
Compaq COBOL for OpenVMS VAX
(ex.), B–14
Compaq COBOL on OpenVMS Alpha
(ex.), B–14
line numbers in compiler listing files, B–14
listing multiple instances of source line, B–14
REPLACING phrase
to inspect data, 5–30
Report
allocating a printer, 10–23
bolding items in, 10–89
bottom margin, 10–13
components of, 10–1
components of (ex.), 10–1
control footing, 10–4
control heading, 10–3
conventional, 10–6
See also Conventional Report
controlling spacing, 10–7
line counter usage, 10–8
logical page, 10–6
logical page area (fig.), 10–6
page-overflow condition, 10–7
page-overflow condition (ex.), 10–8
printing, 10–9
design, 10–1
detail lines, 10–4
footing, 10–4
footing area, 10–13
GROUP INDICATEclause, 10–37
heading, 10–3
layout worksheet (fig.), 10–1
linage-file report, 10–12
See also Linage-file
controlling spacing, 10–14
page advancing, 10–14
page overflow, 10–15
page overflow (ex.), 10–15
printing, 10–19
using the LINAGE-COUNTER, 10–14
linage-file report (ex.), 10–20
logical page, 10–5, 10–13
makeup, 10–6
modes of printing, 10–23
page advancing and line skipping (ex.), 10–9
page body, 10–13
page footing, 10–4
page heading, 10–3
physical page, 10–5
printing, 10–8
printing totals before detail lines, 10–88
problem solving, 10–82
bolding items, 10–89
example, 10–82, 10–84
GROUP INDICATE clause, 10–87
Index21