SQLDA Structure For PL/I

Restriction: This topic applies to Windows environments only.

The SQLDA structure is provided in the copybook SQLDA.INC. Include this copybook in all PL/I programs that make use of dynamic SQL.

dcl sqlsize fixed binary(15);
dcl sqldaptr ptr;
dcl
   1 sqlda based (sqldaptr),
     2 sqldaid    char(8),
     2 sqldabc    fixed bin(31),
     2 sqln       fixed bin(15),
     2 sqld       fixed bin(15),
     2 sqlvar     (sqlsize refer (sqln)),
       3 sqltype  fixed bin(15),
       3 sqllen   fixed bin(15),
       3 sqldata  ptr,
       3 sqlind   ptr,