Start of change

Using Z Data Tools edit models

This topic explains how to use edit models to create batch JCL to access Z Data Tools functions.

Your site's ISPF environment must be configured to enable access to the Z Data Tools edit models. See "Implementing Z Data Tools edit models in ISPF Edit" in the Z Data Tools Customization Guide.

Edit models

An ISPF edit model is a predefined set of statements. You can include these statements in a member that you are editing and then modify them to suit your needs. Along with the edit models that are shipped with ISPF, Z Data Tools includes edit models for Z Data Tools base, ZDT/Db2, and ZDT/IMS functions and REXX external functions.

An edit model has two parts:
Data lines
These are the actual lines that are placed in the data you are editing. In the Z Data Tools ISPF models the data lines describe the format of function parameters.
Notes
Notes provide tutorial information about the function parameters. These describe how to update the data lines to your requirements.
When you enter the MODEL command, you can select the Z Data Tools function for the data type (JCL or EXEC) of the member that is being edited.

Using edit models

If you edit a member of a data set of type JCL or EXEC and then issue the MODEL command, a list of applicable Z Data Tools functions or REXX external functions is displayed.

JCL
The File Manager Models panel lists the available edit models, grouped by category.

You can enter RF to display another panel which lists the available edit models for REXX external functions.

EXEC
The REXX Models panel is displayed.

Enter FF to display the File Manager Rexx Function Models panel, which lists the available edit models for REXX external functions.

Enter the function name to insert the statements from that edit model in the edit session. For example, enter DSEB to insert the Batch Edit model. Use the A (after) or B (before) line command to insert the statements at a specific location.

Issue the RESET command to permanently remove the note lines, leaving only the data lines.

End of change