×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Yes. In your example, each 88 level defines one possible value of the 05
level variable.

They are somewhat analogous to the options in a drop-down box on a web
page. For example, when you click on a drop-down box for the state in
which you live, you are given a list of states as options. In COBOL this
would be:

05 WS-STATE-OF-RESIDENCE PIC XX.
88 WS-ILLINOIS VALUE "IL".
88 WS-CALIFORNIA VALUE "CA".

As mentioned by John, you can then use the 88 level name in your program
logic. Instead of coding:

IF ERROR-CODE-CS50004 = "ON"

You can code:

IF OBJECT-NOT-FND-CS50004

Thanks,
Kelly

-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Tommy.Holden@xxxxxxxxxxxxxxxxxxxxx
Sent: Wednesday, April 30, 2008 9:23 AM
To: cobol400-l@xxxxxxxxxxxx
Subject: [COBOL400-L] quick and easy question

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
--
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing
list To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/cobol400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.