Restrictions on accessing COBOL data

If the DATA parameter is specified or defaulted for a COBOL compile unit that supports this parameter, you can access data defined in the following section of the DATA DIVISION:

  • FILE SECTION
  • WORKING-STORAGE SECTION
  • LOCAL-STORAGE SECTION
  • LINKAGE SECTION

You can also access special registers, except for the ADDRESS OF, LENGTH OF, and WHEN-COMPILED special registers. You can also access all the special registers supported by z/OS® Debugger commands.

When you are replaying statements, many z/OS Debugger commands are available only if the following conditions are met:

  • The DATA parameter must be specified or defaulted for the compile unit.
  • The compile unit must be compiled with a compiler that supports the DATA parameter.

You can use the QUERY PLAYBACK command to determine the compile units for which the DATA option is in effect.

IBM® z/OS Debugger Reference and Messages contains a complete list of all the commands that can be used when you specify the DATA parameter.