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.