z/OS ISPF Dialog Tag Language Guide and Reference
|
Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Defining data fields z/OS ISPF Dialog Tag Language Guide and Reference SC19-3620-00 |
|
|
Data fields are used to display variable data and to allow the user to enter data. To define a data field, use the DTAFLD tag. Every data field must have an associated variable, which is specified on the required DATAVAR attribute. Like all variables used on the panel, the variable named on the DATAVAR attribute can be declared using the VARDCL tag. The purpose of the data field is defined using one of these values
on the USAGE attribute of the DTAFLD tag:
Data fields support field prompts, which can be placed in front of or above the data field. This panel contains examples of all three types of data fields: Figure 1. Data fields
Here is the markup for Figure 1:
In the previous example, there are three input-only data fields, an input/output data field, and an output-only data field. The value of the associated variable is not displayed in an input-only data field, so when the panel is initially displayed, the Title, Author, and Number of pages fields are blank. The Publisher data field assumes the default, BOTH, so the current value of the associated variable, publish, is displayed in the data field when the panel is initially displayed. The output-only data field is used to display the current date. The user cannot interact with this data field, since it is used only to display variable data. The user can enter data into any of the data fields except the output-only field.
|
Copyright IBM Corporation 1990, 2014 |