ADB-9020-00-E AMB DB error Cursor was not declared cursor name

You did not declare the cursor with a correct DB-DECLARE call, or the cursor name is invalid.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Resolution:

Name the cursor correctly in a DB-DECLARE call.