z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


MODEL—Copy a Model into the Current Data Set

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The model name form of the MODEL macro command copies a specified dialog development model before or after a specified line.

The class name form of the MODEL macro command changes the model class that the editor uses to determine the model you want. For more information on edit models, see Using edit models.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command model name syntax

>>-ISREDIT--MODEL--+-------------------------------+------------>
                   '-model_name--+---------------+-'   
                                 | .-----------. |     
                                 | V           | |     
                                 '---qualifier-+-'     

                            .-NOTES---.   
>--+-AFTER--+--+-linenum-+--+---------+------------------------><
   '-BEFORE-'  '-label---'  '-NONOTES-'   

model_name
The name of the model to be copied, such as VGET for the VGET service model. This operand can also be one of the options listed on a model selection panel, such as V1 for the VGET service model. However, to use these options with the MODEL macro command, you must already know what they are or else display a model selection panel by using the MODEL primary command. The MODEL macro command does not display model selection panels. See z/OS ISPF Planning and Customizing for a list of models and model names.
qualifier
The name of a model on a secondary model selection panel, such as TBCREATE for the TBCREATE service model. This operand can also be one of the options listed on a model selection panel, such as G1 for the TBCREATE service model.

For example, a model selection panel allows you to enter T1 to choose table models. It then displays another model selection panel for choosing table models, such as G1 for the TBCREATE service model. Therefore, your MODEL macro command could use either TABLES or T1 as the model-name operand and either TBCREATE or G1 as the qualifier operand. The simplest way would be to use TBCREATE or G1 as the model-name operand and omit the qualifier operand.

To use options with the MODEL macro command, you must already know what they are or else display a model selection panel by using the MODEL primary command. The MODEL macro command does not display model selection panels. See z/OS ISPF Planning and Customizing for a list of models and model names.

AFTER
Specifies that the model is to be copied after the line specified by linenum or label.
BEFORE
Specifies that the model is to be copied before the line specified by linenum or label.
linenum
A relative line number identifying where the model should be copied.
label
A label identifying where the model should be copied.
NOTES
Explanatory notes appear when a model is copied.
NONOTES
No explanatory notes appear.
Read syntax diagramSkip visual syntax diagram
Macro command class name syntax

>>-ISREDIT--MODEL--+-----------------------+-------------------><
                   '-CLASS--+------------+-'   
                            '-class_name-'     

CLASS
Specifies that the current model class is to be replaced by class-name. The new class name is used for all models from that point on, until you change the model class again or end the edit session.
class_name
Specifies the model class for the current edit session. It must be a name on the Model Classes panel or an allowable abbreviation. The model class coincides with the type of model, such as REXX, COBOL, or FORTRAN.

Return codes

0
Normal completion
4
Data truncated (the model exceeded the right-hand margin of the data being edited)
12
Invalid line number (linenum) or label (label)
20
Severe error

Examples

To copy the VGET model at the end of the current data:
ISREDIT MODEL VGET AFTER .ZL

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014