Skip to content

/AWS1/CL_RSD=>DESCRIBESTATEMENT()

About DescribeStatement

Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information includes when the query started, when it finished, the query status, the number of rows returned, and the SQL statement.

For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.

Method Signature

IMPORTING

Required arguments:

IV_ID TYPE /AWS1/RSDUUID /AWS1/RSDUUID

The identifier of the SQL statement to describe. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query. This identifier is returned by BatchExecuteStatment, ExecuteStatement, and ListStatements.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_RSDDESCRSTMTRESPONSE /AWS1/CL_RSDDESCRSTMTRESPONSE