Implementation workflow of an SQL query to IMS
Use IMS Explorer for Development to safely update the IMS catalog with your application.
- Create an IMS Explorer Project, or alternatively, create a general project with the
following steps:
- From the main menu, click File>New>Project.
- Select General>Project.
- Enter a Project name.
- Click Finish.
- Create an IMS SQL file.
In the SQL script, specify the SQL query statements to run against the IMS database.
- In the Project Explorer view, right-click the project that you created in step 1.
- Click New > Other…
- Click IMS Explorer > IMS SQL File
- Click Next.
- Type the name of the file in the File name field.
- Click Finish.
The new SQL file will be automatically opened for editing.
- Write and execute SQL script:
- In the Connection Profile area of the SQL editor, select the existing
connection profile from the drop down Name menu.
Note: The Database name will be automatically selected. The database name is specified when the connection profile is created.
- Enter SQL statements in the text editor area. Multiple SQL statements are separated by semicolon.
- In the Connection Profile area of the SQL editor, select the existing
connection profile from the drop down Name menu.
- To view the results in the SQL Results view:
- Right-click anywhere in the text editor containing SQL script
- Select Execute All to execute the script.