If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Exactly like in RPG. Compile with PDM opt 14 or CRTBNDCBL and hit <F4>. Specify DBGVIEW(*SOURCE or *LIST).
When the compile is ok STRDBG MYCBLPGM and hit <F6> on the lines to designate the breakpoints.
Thanks. I found DBGVIEW option when I tried to compile using CRTBNDCBL (instead with option 14). I have following options:
But When I compile my program with these options it's giving me following error message when executing the program:
Message 'MCH3601' in program object 'SAS006' in library 'DEVLIB' (C D F G).
(Cause . . . . . : Message 'MCH3601' was detected in COBOL statement 403 of
COBOL program 'SAS006' in program object 'SAS006' in library 'DEVLIB'.
Recovery . . . : Enter a G to continue the program at the next MI
instruction, or a C if no dump is wanted, a D if a dump of the COBOL
identifiers is wanted, or an F to dump both the COBOL identifiers and the
file information. The message text for 'MCH3601' follows: 'Pointer not set
for location referenced.'
Possible choices for replying to message . . . . . . . . . . . . . . . :
C -- No formatted dump is given
D -- A dump of the COBOL identifiers is given )
But same thing when I compile with my regular way with option 14 by giving *apost and *nostderr, 'm not getting this problem, is there any other options I need to add to compile with debugging option??
Source listing options . . . . . OPTION *apost
+ for more values
Generation options . . . . . . . GENOPT *nostderr
+ for more values
Option Using CRTBNDCBL: I just added DBGVIEW as *Source, rest all are default.
Comment