List ILE Service Program Information (QBNLSPGM)

From MidrangeWiki
Jump to: navigation, search

Summary

The following is an RPG/LE fully free-form prototype for the IBM QBNLSPGM API to list ILE service program information into a user space.

Prototype for the QBNLSPGM API

//******************************************************************************
// IBM API to List ILE Service Program Information into a User Space
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qbnlspgm.htm
//******************************************************************************
dcl-pr IBMAPI_ListSrvProgramInfo  extpgm('QBNLSPGM');
  SrvPgmSpcN            char(20)  const;
  SrvPgmIFmt            char(8)   const;
  SrvPgmName            char(20)  const;
  SrvPgmErrC            likeds(ApiErrC)     options(*varsize);
end-pr;

References