Created On:  29 March 2011

Problem:

How can I establish if my program is running as a BMP or an MPP?

Resolution:

This can retrieved by issuing a CALL AIBTDLI with the INQY function and ENVIRON as the subfunction.

There are a number of data items returned from this call including:

PSB name
PSB Type - MPP, BMP etc
IMS Transaction code
Userid

This can be run in Mainframe Express or Enterprise Server.  A sample program is attached to show the data returned.