Follow these steps to define default SQL statements.
Open the Select statement definition form (BMQUER).
Click the Record view tab. Datastream 7i displays the Record view page.
Code—Enter the code identifying the SQL statement.
SQL statement—Enter the default SQL statement. To validate the statement, click Test SQL. Datastream 7i displays a message indicating the accuracy of the statement.
Choose File | Save from the menu bar. Datastream 7i saves the changes to the database.