Defining SQL descriptor areas

If your program includes certain SQL statements, you must include an SQL descriptor area (SQLIMSDA). Depending on the context in which it is used, the SQLIMSDA stores information about prepared SQL statements or host variables. This information can then be read by either the application program or IMS.

If your program includes any of the following statements, you must include an SQLIMSDA in your program:

  • DESCRIBE statement-name INTO descriptor-name
  • FETCH … INTO DESCRIPTOR descriptor-name