APIs by Example: An Easy Way to Retrieve the Call Stack

This installment of Carsten Flensburg’s APIs by Example is intended to ease the process of retrieving the current job’s call stack. He provides a utility that you can call that will return the program names and library names in the call stack. This functionality is similar to that displayed by the DSPJOB OPTION(*PGMSTK) command. Instead of displaying them on the screen, however, the CBX501 program retrieves them into your program’s variables.

Download the save file containing the source code.

Read the entire article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s