Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Adding models z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
To create a new model, you must:
As an example of adding a model, assume that you want to create a model for multiple-line block letters. Since you intend to use these block letters on panels, the model becomes part of the panel model class. To build each model block letter, use the editor to create a new member in your skeleton library. For example, you could create a member called BLKI containing this model for the letter I:
Once the model for each letter is built, you must update the selection panel in the prompting sequence that deals with panel model selection. This panel is named ISREMPNL and is stored in the system panel library. Figure 1 shows the last few lines in ISREMPNL: Figure 1. Panel Models panel (ISREMPNL)
Copy the panel shown in Figure 1 into your panel data set and change it by adding a format F1, BLOCKLTR. See Figure 2 for an example. Figure 2. Changed Panel Models panel
(ISREMPNL)
If there are several new models, this panel should be updated so that when you select F2, a new Block Letter selection panel is displayed. Therefore, you should change the )PROC section of panel ISREMPNL to include item F2. See Figure 3 for an example. Figure 3. Changed )PROC section of
Panel Models panel (ISREMPNL)
This concept allows you and other users to have sets of individual models, and allows the installation to have its own set of general models, without having multiple copies of the PDF model selection panels. For each model class, the installation could provide two additional entries on the selection panel: one for installation-wide models and one for your models. Each entry could point to a selection panel, with each user having a copy of the selection panel to customize for individual use. Note that the entry for F2, BLOCKLTR, points to a new panel, ISRBLOCK, which you would now build. You can change an existing panel model to create the new panel. Figure 4 shows how the new panel might be typed. Note particularly the )INIT and )PROC sections of the coding. In the )PROC section of panel ISRBLOCK, the target for all valid selections is the program ISRECMBR. The parameter passed to this program is different for each separate, but valid, selection and is the name of the model for that selection. Thus, for our example, the model name for selection 1 or I is BLKI. You should follow the )INIT source code and the end source code in the )PROC section shown in Figure 4 for all new panels. Figure 4. Source code for Block Letter
Model Selection panel
|
Copyright IBM Corporation 1990, 2014
|