Previous Topic: Load a Compiled IMOD

Next Topic: IMOD Execution Using SRVBATCH

Test a Loaded IMOD

Before moving an IMOD into production, you should test it to verify that the IMOD is working properly.

You test a loaded IMOD from the EXECUTE panel of the IMOD editor. From this panel, you can specify argument strings and the initial stack contents. After the execution is complete, you can retrieve the return string and any resulting stack contents.

To test a loaded IMOD

  1. Enter X beside the loaded IMOD you want to test.

    The EXECUTE panel appears.

    Note: For information about the IMOD editor EXECUTE panel, see the online help.

  2. Review and complete the panel as follows:
  3. Specify any arguments for the IMOD as follows. All arguments are case-sensitive.
  4. Specify any initial stack contents as follows. Stack records are case‑sensitive.
    1. Enter S beside the Load Initial STACK Values option.

      The EDIT --- INITIAL STACK ISPF editor panel appears.

    2. Specify the stack contents.

      The stack that is passed to the IMOD can contain any records you want. The length and content of the individual stack records are governed by the ISPF editor. The aggregate length of all stack records, calculated as follows, must be less than 32766: number_stack_characters + number_stack_records x 2

    3. Press PF3.

      The stack records are retained for your entire IMOD editor session and are passed to any executed IMOD.

  5. Enter S beside the Execute the IMOD option.

    Your request is passed to the specified address space. After an IMOD is executed, the result (as specified by the terminating RETURN or EXIT instruction) and the final stack contents are available for your inspection in the displayed EDIT --- REST RESULTS panel. If an error occurs, an ISPF error indication appears at the upper right of the panel.