Dump COBOL (QlnDumpCobol) API


  Required Parameter Group:


  Default Public Authority: *USE

  Service Program: QLNRMAIN

  Threadsafe: No

The Dump COBOL (QlnDumpCobol) API allows you to perform a formatted dump of an ILE COBOL program. You can call it from any ILE program; however, if the calling program is not an ILE COBOL program, only a data dump will be performed. Message CPF955F will be issued if this API is called to dump any module other than those created by the ILE COBOL compiler.

This API provides two types of dumps, a data dump and an extended dump. The data dump contains the following information:

Note: Only the first 250 characters of the values will be shown in the dump.

The extended dump contains the following additional information:

Variable values may only be requested if an active call stack entry exists for the module object specified in the job in which this API is called. Values existing in program static or automatic storage are not accessible by this API unless the program object has a current call stack entry. All variables that were defined by the compiler and stored in the module object's HLL symbol table will be returned.

Also, the module object for which variable information is requested must contain debug data. Thus, the module object must be compiled with a *DBGVIEW option other than *NONE.


Authorities

Authority Required


  • *SERVICE special authority and *USE authority to the input program, or
  • *USE authority to the input program when the input program is the caller of the API, or
  • *CHANGE authority to the input program

Required Parameter Group

Program object name
INPUT; CHAR(10)

The name of the program to be dumped. If this parameter is omitted, the program object name of the caller is used.

Library name
INPUT; CHAR(10)

The name of the library in which the program to be dumped is found. *CURLIB and *LIBL can be specified as valid values to indicate the current library and the library list, respectively. If this parameter is omitted, the library associated with the calling program is used.

Module object name
INPUT; CHAR(10)

The name of the module, within the specified program, to be dumped. If this parameter is omitted, the module object name of the caller is used.

Program object type
INPUT; CHAR(10)

The object type of the program object.

Valid values are:


Dump type
INPUT; CHAR(1)

The type of dump.

Valid values are:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V3R6

[ Back to top | High-level language APIs | APIs by category ]