The delivered client examples for z/OS batch can be used as a basis for use in BMP mode, but they have to be adapted.
The delivered server examples for z/OS batch can also be used in BMP mode. See Client and Server Examples for z/OS Batch. Using IMS PCB pointers to access IMS databases in this context is described in IMS PCB Pointer IDL Rules under Using the COBOL Wrapper for IMS BMP (z/OS).