Re: SORT and FILE STATUS




"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: Requiring a date be entered as mm/dd/yy on a form field.
    ... that I have not seen in any calendar widgets. ... No, they don't work poorly without javascript, they are disabled without ... YYYY-MM-DD format. ... calendar entry. ...
    (microsoft.public.scripting.jscript)
  • 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: 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: Requiring a date be entered as mm/dd/yy on a form field.
    ... Calendar widgets are great as an *optional* input; ... YYYY-MM-DD format. ... I have found, from the hard data of my weblogs and cgi logs, that less users ... asside from a slightly different entry style ...
    (microsoft.public.scripting.jscript)
  • 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)