Skip to main content

Problem:

CBL_GET_PROGRAM_INFO, Example #2: Trace back the Call/Perform Stack

Resolution:

INTRODUCTION

==========

Simple demonstration of call by name routine cbl_get_program_info.

SOURCE FILES:

=========

Program Files     Description

----------------     -----------------------------------------------------------

Main.cbl              the trigger program  that starts by call SubOne program.

Subone.cbl         Calls Subtwo program.

Subtwo.cbl         Calls Subthree program.

Subthree.cbl       Calls Subfour program.

SubFour.cbl        Calls Subfive program.

Subfive.cbl          Makes the call to cbl_Get_program_info which gets the info of callstack

                           and shows a trace of what was being called.

Copy Files:

----------------     -----------------------------------------------------------

Gtpgminf.cpy     This copybook is for the data items (parameters) for the call by name

                          routine cbl_get_program_info.

REFERENCES

========

In Net Express help look up cbl_get_program_info for details.

OPERATION:

========

Build settings - the main.exe needs to be shared / dynamic with the interface type Character. The other dlls you can click off include system programs in the Build Settings Link tab, Category: Advanced.

Step through the application and take a look at the application output window.

==========================================================

Keywords: demonstration, sample, example, demo, trcback.zip

demo.ex

demo.ne

Attachments:

trcback.zip

Old KB# 4028