Using File Manager/Db2 edit models

This topic explains how to use edit models to create batch JCL to access File Manager/Db2 functions.

The ISPF environment of your site must be configured to enable access to the File Manager edit models. See Implementing File Manager edit models in ISPF Edit in the File Manager for z/OS 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, File Manager includes edit models for the File Manager Base component, FM/Db2, and FM/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 File Manager 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 File Manager 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 File Manager 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.