Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Reference Manual
Previous
Contents
Index
Appendix C
File Status Values
This appendix summarizes the values that can appear in FILE STATUS data items. The
entry for each statement describes specific causes for each condition.
You may receive different file status values depending upon whether you use the
standard compiler option with the v3 or 85 setting. Table C-1 lists all file status values
in numeric order for the default 85 setting. Table C-2 lists the corresponding file status
values for the v3 and 85 settings.
For more information about the standard compiler option, on a Tru64 UNIX system, see
the COBOL man page. On an OpenVMS Alpha or Windows NT system, invoke the
Compaq COBOL online help file.
Table C-1 I-O File Status Values for the Default -std 85 Flag or /STANDARD =85
Qualifier Option
File Input/Output
File
Access
Status Statements Organization Mode
Meaning
00
All
All
All
Successful
02
REWRITE
WRITE
Ind
All
02
READ
Ind
All
04
READ
All
All
05
OPEN
All
All
07
CLOSE
OPEN
All
All
10
READ
All
Seq
14
READ
Rel
All
21
REWRITE
Ind
Seq
21
WRITE
Ind
Seq
22
REWRITE
Ind
All
22
WRITE
Ind, Rel
Ran
23
DELETE
READ
REWRITE
START
Ind, Rel
Ran
24
WRITE
Ind, Rel
All
30
All
All
All
34
WRITE
Seq
Seq
Boundary violation
35
OPEN
All
All
37
OPEN
All
All
38
OPEN
All
All
39
OPEN
All
All
41
OPEN
All
All
42
CLOSE
All
All
43
DELETE
REWRITE
All
Seq
44
REWRITE
WRITE
All
All
46
READ
All
Seq
47
READ
START
All
All
48
WRITE
All
All
49
DELETE
REWRITE
All
All
90
All
All
All
91
OPEN
All
All
92
DELETE
READ
REWRITE
START
WRITE
All
All
93
UNLOCK
All
All
No current record
94
UNLOCK
All
All
95
OPEN
All
All
Table C-2 I-O File Status Values for the V3 and 85 Options
I-O Error Condition
Status Value
V3
85
00
04
00
07
00
14
00
24
00
37
00
44
13
10
15
10
16
10
1
46 1
25
23
30
04
30
37
30
44
94
42
43
94
38
94
39
94
39
94
39
94
41
94
47
94
48
94
49
97
35
See the description of the /STANDARD qualifier in the COBOL online HELP file, or the
Compaq COBOL User Manual for the description of the -std flag, for information about
the No Valid Next Record Condition.
Appendix D
Report Writer Presentation Rules and
Tables
The tables and rules in this appendix specify the following:
The permissible combinations of LINE NUMBER and NEXT GROUP clauses for
each type of report group
The requirements for the use of these clauses
The interpretation that the Report Writer Control System (RWCS) gives to these
clauses
D.1 Organization
There is an individual presentation rules table for each of the following types of report
groups: REPORT HEADING, PAGE HEADING, PAGE FOOTING, and REPORT
FOOTING. In addition, DETAIL report groups, CONTROL HEADING report groups,
and CONTROL FOOTING report groups are treated jointly in the Body Group
Presentation Rules Table.
Columns 1 and 2 of a presentation rules table list all of the permissible combinations of
LINE NUMBER and NEXT GROUP clauses for the designated report group type.
Consequently, to identify the set of presentation rules that applies to a particular
combination of LINE NUMBER and NEXT GROUP clauses, read a presentation rules
table from left to right along the selected row.
The applicable rules columns of a presentation rules table are divided into two parts. The
first part specifies the rules that apply if the report description contains a PAGE clause,
and the second part specifies the rules that apply if the PAGE clause is omitted. The
explanation of the rules named in the applicable rules columns follows:
test rules to determine whether the designated body group can be presented on the
page on which the report is currently positioned.
First print line position rules:
The first print line position rules specify where on the page the RWCS presents
the first print line of the given report group.
The presentation rules tables do not specify where on the page the RWCS presents
the second and subsequent print lines (if any) of a report group; this is determined
by the general rules of the LINE NUMBER clause.
Next group rules:
The next group rules relate to the proper use of the NEXT GROUP clause.
Final LINE-COUNTER setting rules:
These rules specify the values that the RWCS places in LINE-COUNTER after
presenting report groups.
D.4 Saved-Next-Group-Integer
Description
Saved-next-group-integer is a data item that is addressable only by the RWCS. When an
absolute NEXT GROUP clause specifies a vertical positioning value that cannot be
accommodated on the current page, the RWCS stores that value in saved-next-groupinteger. After page-advance processing, the RWCS positions the next body group using
the value stored in saved-next-group-integer.
b. The first print line of the REPORT HEADING report group is presented
on the line number obtained by adding the integer of the first LINE
NUMBER clause and the value obtained by subtracting 1 from the
heading-line value of the HEADING phrase of the PAGE clause.
c. The REPORT HEADING report group is not presented.
d. The first print line of the REPORT HEADING report group is presented
on the line number obtained by adding the contents of its LINECOUNTER (in this case, zero) to the integer of the first LINE NUMBER
clause.
4. Next group rules:
a. The NEXT GROUP integer must be greater than the line number on which
the final print line of the REPORT HEADING report group is presented.
In addition, the NEXT GROUP integer must be less than the line number
specified by first-detail-line of the FIRST DETAIL phrase of the PAGE
clause.
b. The sum of the NEXT GROUP integer and the line number on which the
final print line of the REPORT HEADING report group is presented must
be less than the value of first-detail-line of the FIRST DETAIL phrase of
the PAGE clause.
c. NEXT GROUP NEXT PAGE signifies that the REPORT HEADING
report group will appear by itself on the first page of the report. The
RWCS processes no other report group while positioned at the first page
of the report.
5. Final LINE-COUNTER setting rules:
a. After the REPORT HEADING report group is presented, the RWCS
places the NEXT GROUP integer into LINE-COUNTER as the final
LINE-COUNTER setting.
b. After the REPORT HEADING report group is presented, the RWCS
places the sum of these two items into LINE-COUNTER as the final
LINE-COUNTER setting:
The NEXT GROUP integer
The line number on which the final print line of the REPORT
HEADING report group was presented
c. After the REPORT HEADING report group is presented, the RWCS
places zero into LINE-COUNTER as the final LINE-COUNTER setting.
d. After the REPORT HEADING report group is presented, the final LINECOUNTER setting is the line number on which the final print line of the
REPORT HEADING report group was presented.
e. LINE-COUNTER is unaffected by the processing of a nonprintable report
group.
a. The first print line of the PAGE HEADING report group is presented on
the line number specified by the integer of its LINE NUMBER clause.
b. If a REPORT HEADING report group has been presented on the page on
which the PAGE HEADING report group is to be presented, then the sum
of the following two items defines the line number on which the first print
line of the PAGE HEADING report group is presented:
Otherwise, the sum of the following two items defines the line number on
which the first print line of the PAGE HEADING report group is
presented:
Previous
Next
Contents
Index