Technically its known as a condition name. The element it/they describe(s) can be tested for one of the values or set to one of the values through the use of the condition name. This isolates the constants used, to the Data Division, in one location in the code. While Condition Names use constants, they are not used as one would use a constant directly in the code.

SET OBJECT-NOT-FND-CS50004 TO TRUE

sets the ERROR-CODE-CS50004 element to contain the value "ON"

IF OBJECT-NOT-FND-CS0004 THEN...

tests the element ERROR-CODE-CS50004 to see if it contains the value "ON"


Tommy.Holden@xxxxxxxxxxxxxxxxxxxxx wrote:
if my failing memory is correct:

01 PASSED-PARAMETERS-CS50004. 05 ERROR-CODE-CS50004 PIC XX. 88 OBJECT-NOT-FND-CS50004 VALUE "ON". 88 USER-NOT-FND-CS50004 VALUE "UN". 88 ENTRY-NOT-FND-CS50004 VALUE "NF".
the 88 is always a constant value correct?

Thanks,
Tommy Holden


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.