From: firstname.lastname@example.org [mailto:email@example.com]
Sent: Monday, July 30, 2001 08:18
Subject: Debugging COBOL ILE - a BUG?
Does anyone know why a WORKING-STORAGE element definition on lowest level, is not available in the 'EVAL' command in the debugger, UNLESS IT IS REFFERED TO WITHIN PROCEDURE DIVISION?
An example from real life:
WORKING STORAGE SECTION.
05 X PIC 9.
05 Y PIC 9.
move 1 to X (note that Y is not reffered to)
debugging: EVAL X gives result = 1 (OK)
EVAL Y gives error message 'Identifier does not exist'
In my example, the 'Y' got its value in return from a called procedure, but was not available in the debugger neither before nor after tha call!
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.