ADB-9040-00-E AMB DB error DB-FREE command is invalid for IMS and DB2

You coded a DB-FREE call for an IMS or DB2 database.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Resolution:

Code the DB-FREE call for CICS/VSAM only.