Rational Developer for System z

IMS snippets categories in IBM Rational Developer for System z

IBM® Rational® Developer for System z® supports IMS™ categories among the categories in the Snippets view.

The categories for IMS snippets are as follows:

Management and services categories

You can use the first four snippets categories to add IMS DL/I calls to your COBOL program. Each snippet in these categories corresponds to an individual DL/I function. Invoking one of these snippets brings ups a dialog that prompts you for details of the specific DL/I function call. At the top of the dialog you specify the interface type to use in the DL/I call from the list of interfaces compatible with the selected DL/I function call. The remaining fields correspond to the parameters of the corresponding DL/I call, with the following exceptions:

When you use these snippets in conjunction with the System z LPEX Editor or COBOL Editor, references to nested fields of the AIB or PCB control blocks in the snippet code are replaced automatically with the actual fields present in the referenced AIB or control block. For example, when generating the line of code MOVE LENGTH OF AIB TO AIBRLEN OF AIB, the snippet generator looks up the field defined at offset 8 of the AIB control block selected in the dialog and uses that as the name for the AIBRLEN field. If the AIB block cannot be parsed out of the code, a default value for the field is used.

When generating the DL/I call, the snippet code generator tries to look up a level 77 field whose VALUE clause equals the DL/I function and use that in the call. For example, when creating the code for the GHN snippet, the generator parses the code and may find the following declaration:

77  GET-HOLD-NEXT    PICTURE X(4)  VALUE 'GHN '.

At that point, GET-HOLD-NEXT is substituted into the function call. If no match is found, the snippet name (GHN in this case) is used in the function call.

IMS Application Interface Masks for COBOL

These snippets add commonly used COBOL data structures to your program.

IMS DL/I Function Codes for COBOL

These snippets add the DL/I function names as level 77 data structures.


Feedback