Retrieve Call Stack (QWVRCSTK)

From MidrangeWiki
Revision as of 16:54, 17 December 2018 by DaveLClarkI (talk | contribs) (Summary)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The following is an RPG/LE fully free-form prototype for the IBM QWVRCSTK API to retrieve the Call Stack content for the current job.

For more information on this API, visit Retrieve Call Stack (QWVRCSTK) API (right-click to open link in a new tab).

By Dave Clark

Prototype for the QWVRCSTK API

// IBM API to Retrieve Call Stack information
// callp IBMAPI_RtvCallStack( MyCallStack: %len(MyCallStack): 'CSTK0100'
//                          : MyJobInfo: 'JDIF0100': ApiErrC);
dcl-pr IBMAPI_RtvCallStack        extpgm('QWVRCSTK');
  CStkRcvr              likeds(QWVK0100) options(*varsize);
  CStkRLen              int(10:0) const;
  CStkRFmt              char(8)   const;
  CStkJInfo             likeds(QWCF0100) options(*varsize);
  CStkJFmt              char(8)   const;
  CStkErrC              likeds(ApiErrC)  options(*varsize);


See the Find Call Stack Entry service procedure.