Exercise 4.3: Submitting iSeries commands in the iSeries table view

Before you begin, you must complete Exercise 4.2: Compiling source remotely.

You can use the iSeries Table view inside the Remote System Explorer to submit commands to the iSeries. You can run commands from the Commands field beneath the iSeries Table view, and view messages in the Messages field. After you populate the table, you can enter a command and click either Prompt to specify parameters and then Run or just click Run. When you run a command, the Messages field is populated with the messages from the command. When you select a message, the Details button is enabled. When you click this button, the message and its help is displayed.

Also note that besides the iSeries Table view, you can also use the Remote Systems view to run commands and programs. Which one you choose depends on your personal preference. In the iSeries Table view, you can see the properties of all items at the same time; they are displayed as rows across the table. In the Remote Systems view, you have greater ease of navigation; you can work from your Library list in the iSeries Objects subsystem, and you can see the contents of many items before selecting the one you want to run.

In the Commands field, you select where you want to run the command. The choices are Normal, which means that the command will run in the RSE communication server job, Batch or Interactive.

To change the library list:
iSeries Table view with command entry

  1. Click the iSeries Table View tab from the views at the bottom of the workbench.
  2. In the Command field type, CHGCURLIB RSELABXX for example.
    Note:
    Use a library that is on your iSeries system.
  3. Click Run.

    If you haven't used the iSeries Table view to show iSeries objects in this view you will see an error message because the table view is not linked to an active connection.

    If you see this message, click OK.

    1. In the Remote Systems view, right-click QCBLLESRC.
      Select Table view to connect it to iSeries
    2. Click Show in Table on the pop-up menu.

      The table view is now populated with the member in the selected source file.

    3. Run the CHGCURLIB command again.

      The command will run on the iSeries and after completion you will see the completion message on the bottom of the iSeries Table view.
      Completion message for command

  4. Back in the workbench in the Remote Systems view, right-click Library list and click Refresh.
    Refresh Library list to see current library
  5. You will see a small green asterisk beside the RSELABxx library to indicate it as your current library.
  6. You can also connect to other than iSeries systems with the Remote System Explorer and launch commands for these systems as well, for example, your local system, or Linux(TM).

You have submitted a command to change the current library in the command line of the iSeries Table view now you are ready to begin Exercise 4.4: Running commands and programs.