Opens a query object.

Note: You must perform QUERY-PREPARE on a query object before you perform QUERY-OPEN on it.

Return type: LOGICAL

Applies to: Query object handle

Syntax

QUERY-OPEN ( )

Notes

  • Once you perform QUERY-PREPARE on a query object, you can perform QUERY-OPEN on it multiple times as long as you do not reperform QUERY-PREPARE. Once you reperform QUERY-PREPARE, you must reperform QUERY-OPEN.
  • The QUERY-PREPARE and QUERY-OPEN methods correspond to the OPEN QUERY statement.
  • The QUERY-OPEN() method cannot be used together with other assignments in a single ASSIGN statement.