Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
How to use edit models z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
You use models to assist you in defining a dialog element. To use a model, first edit your data. Then determine where you want to place the model. If you are editing existing data, define a label or use the A (after) or B (before) line command to show where the model goes. You do not need to use the A or B command when you have a new data set. Then type MODEL on the command line and press Enter. If you know the logical name of the model you want, you can use it to directly access the model. Type MODEL mmm, where mmm is the name of the model. For example, if you want the model for LMCLOSE, you would specify MODEL LMCLOSE. If you enter MODEL with no parameters, PDF displays a series of selection panels, from which you select the model name and any qualifiers. The original data is then displayed with the model in place. You can type over or use line commands to change the data lines in the model to meet your needs. As an example, assume that you are writing a dialog function using CLIST commands and you want to have the CLIST display a panel. You are editing your CLIST member, called USERID.PRIVATE.CLIST(DEMO1). Since your data set type, CLIST, matches the class of models you want, you can allow the model class to default. If you enter MODEL without a model name, the CLIST Models panel, Figure 1, appears. Figure 1. CLIST Models panel (ISREMCMD)
If you select option D1 (DISPLAY), the editor inserts the model for the DISPLAY service in your CLIST, as shown in Figure 2. The lines are inserted at the location you specify with a label or an A or B line command. Notes are identified by the characters =NOTE= in the line command field. Figure 2. DISPLAY Service Model
With the notes as a guide, you can edit the CLIST to change the DISPLAY service call parameters for your function. The error-handling source code shown serves as a skeleton which you can update. Finally, use RESET to eliminate the notes from the panel, leaving the service call, the error-handling logic, and the comments. Some models also include examples in NOTE lines. Use the MD line command to turn NOTE lines into data lines. |
Copyright IBM Corporation 1990, 2014
|