Previous Topic: How SQL Processes Null ValuesNext Topic: The ADDRESS SQL Environment and Host Variables


SELECT Statement—Request Data from a Table

You request data from a table through the SELECT statement. For example, to fetch the current state of the CICS system from the SYSTEMS table, you could include this line in an AOF rule:

ADDRESS SQL
  "SELECT CURRENT_STATE INTO :CUR_STATE FROM SYSTEMS",
    "WHERE NAME='CICS'"

The syntax for this statement breaks down like this:

When this statement executes, CA OPS/MVS sets the following variables:

More information:

Specifying Stem Names