Creating an IMS SQL File

Use the IMS SQL File wizard to create an IMS SQL file.

You can use an existing project to store the SQL file or create a project when you create the SQL file.

  1. In the IMS Explorer perspective, select File > New > SQL File.
  2. Associate the SQL file with a project.
    To Do this
    Use an existing project Enter or select the project in the Enter or Select the Parent Folder.
    Create a new project Click Create Project, and follow the wizard instructions.
  3. Enter the File Name.
  4. (Optional) Click Advanced to link to a file in the file system and to create, edit, or remove defined path variables.
  5. (Optional) Associate the SQL file with a connection profile.
    1. Select a Connection Profile Type.
    2. Select a Connection Profile Name, or click Create to create one.
    3. Select the Database Name.
  6. (Optional) Select Do Not Connect Now to remain disconnected from the server.

    You cannot use the complete Content Assist feature if you select this option.

  7. Click Finish.

    A SQL file is created under the project in Project Explorer View and opens in the IMS SQL Editor.

  8. Type your SQL directly in the editor window.
  9. (Optional) To add or remove comment delimiters for a line of code, right-click one or more lines of code, and select Toggle Comment.
  10. When finished, save the SQL file.
Related concepts
IMS SQL Editor
Related tasks
Editing an IMS SQL File
Opening an IMS SQL File
Saving an IMS SQL File
Related reference
IMS SQL Editor Preferences
IMS SQL Code Assist Preferences
IMS SQL File Preferences
IMS SQL Syntax Coloring Preferences
IMS SQL Templates Preferences