To generate and embed auxiliary code

  1. Open the project that contains the program into which you want to embed the SQL.
  2. Open the appropriate program in the program editor.
  3. Place your cursor at the point in your program where you want the auxiliary code to appear.
  4. In the OpenESQL Assistant, click the Auxiliary Code tab.
  5. Click EXEC SQL.
  6. Click Add query to temporary file .
  7. Click View temporary file Insert query into program.
  8. Copy the code in the temporary file, and paste it into your program.