IBM Support

SE48242 - WDS-CBLLE-CMPL-INCORROUT DEBUGGER APPEARS TO SKIP BREAKPOINTS
IN COBOL

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 APAR (Authorized Program Analysis Report)

Abstract

WDS-CBLLE-CMPL-INCORROUT DEBUGGER APPEARS TO SKIP BREAKPOINTS
IN COBOL

Error Description

COPY REPLACING statements can cause a problem in the line      
counting for the debugger when debugging the source view in    
that a COPY REPLACING that has comment data in columns 73 to 80
will cause the compiler to unnecessarily split the line into 2  
lines, causing the line count to increase when it did not need  
to. The line count is passed to the debugger.                  

Problem Summary

****************************************************************
* USERS AFFECTED: Users who specify the COPY REPLACING         *
*                 statement in their code and who compile      *
*                 using the DBGVIEW(*SOURCE) or DBGVIEW(*ALL)  *
*                 compiler option may encounter this problem   *
*                 while using the debugger to set breakpoints. *
****************************************************************
* PROBLEM DESCRIPTION: When using the system debugger to set   *
*                      breakpoints from the SOURCE view of a   *
*                      COBOL program, the breakpoint may       *
*                      appear 1 or more lines after the line   *
*                      where the user attempted to add the     *
*                      breakpoint.                             *
****************************************************************
* RECOMMENDATION: Compile with option DBGVIEW(*LIST) or        *
*                 DBGVIEW(*ALL) and set breakpoints from the   *
*                 listing view rather than the source view.    *
*                 Alternatively, remove any data from columns  *
*                 73 to 80 on the lines where COPY REPLACING   *
*                 is specified in the source code and          *
*                 recompile before setting breakpoints from    *
*                 the source view.                             *
****************************************************************
When using the system debugger to set breakpoints from the      
SOURCE view of a COBOL program, a breakpoint may appear 1 or    
more lines after the line where the user attempted to add the  
breakpoint if the source code contains one or more COPY        
REPLACING statements.                                          

Problem Conclusion

A PTF will be issued in V7R1 and other releases as needed.      
The PTF will allow the user to specify new environment variable
QIBM_COBOL_SOURCE_DEBUG_VIEW_FIX to correct the problem so that
the breakpoint will be assigned to the correct line from the    
debugger source view of the code.  An environment variable is  
being used because the number of lines in the compiler listing  
may be reduced by this fix, as data in columns 73 to 80 on a    
COPY REPLACING statement line will no longer cause the line    
to be split into 2 lines in the listing in most cases.          
It should be noted that the environment variable will not be    
supported in any releases after V7R1, and this fix will        
become the default behavior.                                    
This PTF requires that the environment variable be enabled where
the code will be compiled.  To enable the environment variable  
just go to an IBM i command line and enter:                    
ADDENVVAR ENVVAR(QIBM_COBOL_SOURCE_DEBUG_VIEW_FIX) VALUE(Y)    
LEVEL(*SYS)                                                    
Then sign off and back on so that it takes effect, or use      
LEVEL(*JOB) so that it takes effect immediately but only for    
your current job.  Then recompile your COBOL source.            

Temporary Fix

Comments

Circumvention


Compile with option DBGVIEW(*LIST) or                          

DBGVIEW(*ALL) and set breakpoints from the                      
listing view rather than the source view.                      
Alternatively, remove any data from columns                    
73 to 80 on the lines where COPY REPLACING                      
is specified in the source code and                            
recompile before setting breakpoints from                      
the source view.                                                

PTFs Available

R710 SI43935 PTF Cover Letter   2115

Affected Modules

         
         

Affected Publications

Summary Information

Status............................................ CLOSED PER
HIPER........................................... No
Component.................................. 5770WDS40
Failing Module.......................... QLNTPSCN
Reported Release................... R710
Duplicate Of..............................




System i Support

IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG15Q","label":"APARs - OS\/400 General"},"Component":"","ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"V7R1M0","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG16C","label":"APARs - IBM i 7.1 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"V7R1M0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
18 May 2012