IMS-5040-00-F (TP) SUBSCHEMA or PSB macro not invoked

You did not invoke IM-PSB or DB-SUBSCHEMA.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Resolution:

All IMS programs must invoke either IM-PSB or DB-SUBSCHEMA as the first call in the program.