You can use a wizard to add an SQLJ iterator declaration clause
to an SQLJ file. An SQLJ iterator declaration clause declares a positioned
iterator class or named iterator class in an SQLJ application program.
Prerequisite: The SQLJ file must be open in the SQLJ editor.
You can insert an SQLJ iterator declaration clause anywhere in
an SQLJ file that a Java™ class definition can appear in a Java program.
To
add an SQLJ iterator declaration clause:
- In the open SQLJ file, place the cursor at the location in the
code where you want to add the SQLJ iterator declaration clause.
- Right-click at the insertion point, and then click on the pop-up menu.
- On the SQLJ Iterator Declaration page, provide the information
for the iterator declaration clause, and then click Next.
- On the Review SQLJ Clause page, click Finish.
The SQLJ iterator declaration clause is added to the code at the
insertion point.