Re: SORT and FILE STATUS



OK.
Thanks Rick, I missed that.

Roger

"Rick Smith" <ricksmith@xxxxxxx> schrieb im Newsbeitrag
news:12rea0an97lrq8f@xxxxxxxxxxxxxxxxxxxxx

"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.]





.



Relevant Pages

  • Re: Output to txt:
    ... Then to follow, are all the entries ... : column entry. ... To get around this for now, I format the output as html ... Word stores a file with embedded code to display it as it is seen on screen ...
    (microsoft.public.scripting.vbscript)
  • Re: QDE (Quick Date Entry)
    ... The user DOES NOT have to enter dates in yyyy-mm-dd format. ... alternative 2- or 3-digit short date entry treatment. ... QDE is the logical opposite of a one-size-fits-all approach. ... I'll admit my macro doesn't handle such entries ...
    (microsoft.public.excel.worksheet.functions)
  • Re: SORT and FILE STATUS
    ... entry] General format, Format 4, page 233, ... sort-merge file description entry. ... Having a FILE STATUS clause with a sort-merge file ...
    (comp.lang.cobol)
  • Re: QDE (Quick Date Entry)
    ... >>would be retained after entry. ... You're already processing entered cells. ... without QDE), and process cells with initial apostrophes the same ways ... what prevents you from changing the cell's format as well as its ...
    (microsoft.public.excel.worksheet.functions)