Re: SORT and FILE STATUS
- From: "Rick Smith" <ricksmith@xxxxxxx>
- Date: Wed, 24 Jan 2007 04:30:44 -0500
"Roger While" <simrw@xxxxxxxxxxxx> wrote in message
news:ep755i$g5v$03$1@xxxxxxxxxxxxxxxxxxxx
Is FILE STATUS legal with a SORT file ?
Can't see anywhere in the standard that says it is not.
If so, when and under what conditions should the file
status be set in combination with the SORT/USING/GIVING/RELEASE/RETURN
statments.
The chapter 9.1.12 I-O status only refers to usual I/O statements.
ISO/IEC 1989:200x WD 1.6, 12.3.4.1 [File control
entry] General format, Format 4 (sort-merge), page 233,
contains no provision for a FILE STATUS clause.
12.3.4.2 [File control entry] Syntax rules, page 234,
"FORMAT 1
9) Format 1 shall be specified only for an indexed file.
The associated file description entry shall not be a
sort-merge file description entry.
FORMAT 2
10) Format 2 shall be specified only for a relative file.
The associated file description entry shall not be a
sort-merge file description entry.
....
FORMAT 3
12) Format 3 shall be specified only for a sequential
file or a report file. The associated file description entry
shall not be a sort-merge file description entry.
FORMAT 4
13) Format 4 shall be specified only for a sort-merge file.
The associated file description entry shall be a sort-merge
file description entry."
Formats 1, 2, and 3 (indexed, relative, and sequential,
respectively) have FILE STATUS clauses; but Format 4
does not.
Having a FILE STATUS clause with a sort-merge file
description entry would be an implementor extension.
Micro Focus allowed (allows) a SORT STATUS
clause (FILE STATUS was a synonym). Available
status keys were (are) 0/0 - Successful, 3/0 - Permanent
Error, and 9/nnn - Operating system error message
number. Status values were (are) updated after each
sort operation.
[I use a past (present) relation, above, because the
Micro Focus product I have will become a teenager
in a few months and information from the manuals I
have may not apply to current products.]
.
- Follow-Ups:
- Re: SORT and FILE STATUS
- From: Roger While
- Re: SORT and FILE STATUS
- References:
- SORT and FILE STATUS
- From: Roger While
- SORT and FILE STATUS
- Prev by Date: SORT and FILE STATUS
- Next by Date: Re: SORT and FILE STATUS
- Previous by thread: SORT and FILE STATUS
- Next by thread: Re: SORT and FILE STATUS
- Index(es):
Relevant Pages
|