xcall SQL, SQLOP_GET_STMATR, cmdhdr, optionval
This is the inverse of SQLOP_SET_STMATR. It uses all the same syntax, symbols, and semantics except that the optionval parameter is used to return to the current value of the attribute, rather than to set it.