An edit model is a predefined set of statements for a dialog
element that you can include in the data you are editing and then
modify to suit your needs. When you enter the MODEL command, you can
select the correct segment for the data type being edited.
ISPF includes an initial set of models for panels, messages, skeletons,
and command and program processing of ISPF services. You can add more.
There are no models of edit macro commands and assignment statements.
A model has two parts:
- Data lines
- These are the actual lines that are placed in the data you are
editing. For example, the data might be a dialog service call or a
panel format. You can update fields in the source statements by inserting
names, parameters, and so forth.
The models also include source
statement comments for models of dialog service calls to document
the meanings of the possible return codes from the service. The comments
are in a valid format for the particular kind of model. These comments
give you the information you need to develop error-handling logic
for your function. Sometimes they provide parameter descriptions for
other kinds of models.
- Notes
- Notes provide tutorial information about how to complete source
code statements. You can specify whether you want the notes displayed
during the edit session by using the NOTES command or the NOTES or
NONOTES operand on the MODEL command. To remove notes from the panel,
issue RESET. To convert the notes to data so that they can be saved
with your data set, use the MD (make dataline) line command.