It depends if you are compiling as OPM cobol(.cbl) or ILE Cobol(.cblle) or SQL(.SQLCBL or SQLCBLLE)?

OPM Cobol change the OPTION compile cmd to *LSTDBG instead of *SRCDBG. ILE Cobol or SQL(OPM or ILE) change the DBGVIEW compile cmd to *LIST instead of *SOURCE. Then you should see the copy books info in the PROCEDURE section when debugging.
Jeff Buening
Sr. Developer
P: 419.586.8599 F: 419.586.8997

Celina Insurance Group
800.552.5181 | 1 Insurance Square, Celina, Ohio 45822

The information contained in this message (including any attachments) is confidential and may be privileged.
Unauthorized disclosure, copying, or use of this information is prohibited and may be unlawful.
If you are not the intended recipient, please delete this message and notify the sender.

-----Original Message-----
From: COBOL400-L <cobol400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Paul Nicolay
Sent: Tuesday, May 19, 2020 10:29 AM
To: cobol400-l@xxxxxxxxxxxxxxxxxx
Subject: [COBOL400-L] Debugging COPY statements


I'm using COPY (as well as INCLUDE) statements in my Cobol source but during debugging I don't see the contents.

Is there a method to see the contents and debug them ?

Kind regards,

This is the COBOL Programming on the IBM i (AS/400 and iSeries) (COBOL400-L) mailing list To post a message email: COBOL400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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