Functions Performed
An MFLD statement for MAP AUTOPANEL is used to add a map field to a map by performing the following functions:
►►──┬──────────┬─ MFld ───────────────────────────────────────────────────────► ├─ ADD ────┤ └─ MODify ─┘ ►──┬───────────────────────────────────────┬─────────────────────────────────► └─ OCCURS ─┬─ 1 ◄ ────────────────────┬─┘ └─ occurrence-count times ─┘ ►──┬─────────────────────────────────────────────────────────────────────────► ├─ FOR ALL ◄ ────────────────────┬──────────────────────────────────────── │ ┌────── , ──────┐ │ └─ FOR ( ─▼─ device-code ─┴─ ) ──┘ ►────────────────────────────────────────────────────────────────────────────► ─┬───────────────────────────────────────┬────────────────────────────────── └─ AT ─┬─ ANYwhere ───────────────────┬─┘ │ ┌──────────────────────────┐ │ └─▼─ ( row ─┬─ 1 ◄ ────┬─ ) ─┴─┘ └─ column ─┘ ►────────────────────────────────────────────────────────────────────────────► ─┬──────────────────────────────────────────┬─────────────────────────────── └─ ATTRibutes = ─┬─ NONE ────────────────┬─┘ └─ ( attributes-list ) ─┘ ►────────────────────────────────────────────────────────────────────────────► ─┬───────────────────────────────────┬────────────────────────────────────── ├─ DELIMit ─┬──────┬──┬─ SKIP ◄ ─┬──┤ │ ├─ IS ─┤ └─ NOSKIP ─┘ │ │ └─ = ──┘ │ └─ NODELIMit ───────────────────────┘ ►────────────────────────────────────────────────────────────────────────────► ─┬───────────────────────────────────────────┬────────────────────────────── └─ PAGing type ─┬──────┬─┬─ DETail STart ─┬─┘ ├─ IS ─┤ ├─ DETail ONLY ──┤ └─ = ──┘ ├─ DETail ENd ───┤ ├─ FOOTer STart ─┤ └─ NULl ◄────────┘ ►──────────────────────────────────────────────────────────────────────────┬─► ─┬──────────────────────────────────────────────────────────────────────┬─┘ └─ VALue ─┬────┬─┬─ 'data-value' ────────────────────────────────────┬─┘ ├ IS ┤ │ ┌─────────────────────────────────────────┐ │ └ = ─┘ └─( ─▼─┬──────────────────────┬─ 'data-value' ─┴─ )─┘ └─ (occurrence count) ─┘ ►─┬─ CURSOR ─────┬───────────────────────────────────────────────────────────► └─ NOCURSOR ◄ ─┘ ►─┬─ LITeral ◄ ─────────────────────┬────────────────────────────────────────►◄ ├─ MESSage LENgth ─┬─ length ─┬───┤ │ └─ 80 ◄ ───┘ │ ├─ PAGE LENgth 4 ─────────────────┤ ├─ RESPonse LENgth ─┬─ length ─┬──┤ │ └─ 80 ◄ ───┘ │ └─ DFld dfld-specifications ──────┘
Expansion of dfld-specifications
►►─── data-field-name ─┬────────────────────────┬─────────────────────────────► └─ ( subscript-number ) ─┘ ►─┬──────────────────────────────────────────────────────┬───────────────────► └─ OF ─┬─ record-name ─┬──────────────────────────┬──┬─┘ │ └─ VERsion version-number ─┘ │ └─ role-name ─────────────────────────────────┘ ►──┬─────────────────────────────────────────────────────────────────────────► └─ HELP ────────────────────────────────────────────────────────────────── ►────────────────────────────────────────────────────────────────────────────► ──── SOUrce ─┬─ NONE ─────────────────────────────────────────────────────── └─ MODule module-name ─┬─────────────────────────────────────┬─ └─ VERsion ─┬──────┬─ version-number ─┘ ├─ IS ─┤ └─ = ─┘ ►──────────────────────────────────────────────────────────────────────────┬─► ────────────────────────────────────────────────────────────────────┬─────┘ ──┬────────────────┬────────────────────────────────────────────────┘ ├─ HALF screen ◄─┤ └─ FULL screen ──┘ ►─┬─ REQuired ───┬───────────────────────────────────────────────────────────► └─ OPTional ◄ ─┘ ►─┬───────────────────────────────────────┬──────────────────────────────────► └─ REVerse NUMeric ─┬──────┬──┬─ Yes ─┬─┘ ├─ IS ─┤ └─ No ──┘ └─ = ──┘ ►─┬──────────────────────────────────────────────────────────┬───────────────► └─ UNDERSCORE when blank ──┬─ No ◄─┬───────────────────────┘ └─ Yes ─┘ ►─┬─ NOEDIT ◄ ───────────────────────────────────────────────────────────────► └─ EXTernal PICture ─┬───────┬─┬─ 'picture'──┬───────────────────────────── ├─ IS ──┤ └─ INTernal ──┘ └─ = ───┘ ►────────────────────────────────────────────────────────────┬───────────────► ─┬──────────────────────────┬─┬───────────────────────────┬─┘ ├─ ZEROed ◄ ─┬─ when null ─┘ ├─ DISPlay ◄ ─┬─ when zero ─┘ └─ RETAINed ─┘ └─ BLANK ─────┘ ►─── EDIT TABle ─┬──────┬─┬─ NULL ◄ ─────────────────────────────────────────► ├─ IS ─┤ └─ table-name ─┬──────────────────────────┬──────── └─ = ──┘ └─ VERsion version-number ─┘ ►──────────────────────────────────────────────┬─────────────────────────────► ─┬─ LINK ◄ ─┬─┬─────────────────────────────┬─┘ └─ NOLINK ─┘ └─ USAGE is ─┬─ VALIDate ───┬─┘ ├─ INVALIDate ─┤ └─ DEFault ◄ ──┘ ►─┬────────────────────────────────────────────────────────────────────────┬─► └ CODE TABle ─┬────┬─┬ NULL ◄ ──────────────────────────────────────────┬┘ ├ IS ┤ └ table-name ─┬────────────────────────┬─┬ LINK ◄ ┬┘ └ = ─┘ └ VERSION version-number ┘ └ NOLINK ┘ ►─┬───────────────────────────────────┬──────────────────────────────────────► └─ ERROR MESSage ──┬─ 'message'───┬─┘ ├─ message-id ─┤ └─ NULL ◄ ─────┘ ►──┬─────────────────────────────────────────────┬───────────────────────────► └─ MSG PREFIX ─┬──────┬───┬──── DC ◄ ─────────┤ ├─ IS ─┤ └─ message-prefix ──┘ └─ = ─┘ ►─┬──────────────────────────────────────────────────────────────────────────► └─ FOR INput ─┬───────────────────────┬─┬──────────────────────────┬─────── └─ JUSTify ─┬─ Left ──┬─┘ └─ PAD ─┬─ No ◄ ─────────┬─┘ └─ Right ─┘ └─ with literal ─┘ ►────────────────────────────────────────────────────────────────────────────► ─┬────────────────────┬───────────────────────────────────────────────────── └─ DATA ─┬─ YES ◄ ─┬─┘ └─ NO ────┘ ►────────────────────────────────────────────────────────────────────────────► ─┬───────────────────────────────────────────────────────────┬────────────── └─ UPPERCASE ──┬─ NO ◄─┬────────────────────────────────────┘ └─ YES ─┘ ►────────────────────────────────────────────────────────────────────────┬───► ─┬─────────────────────────────────────┬── WITH AUTOedit ─┬─ NO ◄ ───┬─┘ └─ EDIT ─┬───────┬─ edit-module-name ─┘ ├─ BEFore ─┤ ├─ IS ──┤ └─ AFTer ──┘ └─ = ───┘ ►─┬──────────────────────────────────────────────────────────────────────────► └─ FOR OUTPUT ─┬───────────────────────┬─┬────────────────────────┬──────── └─ BACKscan ─┬─ YES ──┬─┘ └─ DATA ─┬─ YES ◄ ─────┬─┘ └─ NO ◄ ─┘ ├─ NO ────────┤ ├─ ERASE ─────┤ └─ ATTRibute ─┘ ►────────────────────────────────────────────────────────────────────┬─ . ───►◄ ─┬──────────────────────────────────┬── WITH AUTOedit ─┬─ NO ◄ ───┬─┘ └─ EDIT ─┬────┬─ edit-module-name ─┘ ├─ BEFore──┤ ├ IS ┤ └─ AFTer ──┘ └ = ─┘
Specifies the action taken with regard to the MFLD statement. The DELETE verb cannot be specified for MFLD statements for MAP AUTOPANEL.
Note: For information about how to remove a field occurrencefrom a map occurrence that was defined by a MAP AUTOPANEL statement, see "Compiler Action Verbs."
Introduces the clauses that define a map field and associated panel field occurrence.
Specifies the number of times the field is to appear on the map; the default is 1.
Associates the specified screen sizes with field specifications established by subsequent AT, ATTRIBUTES, DELIMIT, and VALUE clauses. If the map is used with more than one screen size, multiple FOR specifications can be included in the MFLD statement to establish different information for each screen size.
For a more detailed description of this latter use of the FOR specification, see "Defining Versions of Maps for Different Devices."
A field is associated with specific devices as follows:
Specifies that subsequent clauses of the MFLD statement apply to all screen sizes specified in the related DEVICES clause.
Specifies one or more devices. Subsequent clauses of the MFLD statement apply only to the designated screen sizes. More than one device-code-a specification can be included in a FOR clause. The number of valid device-code-a specifications depends on the number of screen types declared in the related DEVICES specification.
Valid screen sizes are 12X40, 12X80, 24X80, 32X80, 43X80, and 27X132. Device specifications must be enclosed in parentheses and separated by commas; for example, FOR (12X40,12X80).
Specifies the screen coordinate of the attribute byte for a field by row and column. The coordinate establishes the location of a runtime field on a given screen. An attribute byte is a nondisplayable character that precedes the displayed field and defines the field's attributes.
The field itself is displayed starting at the coordinate that immediately follows the nondisplayable attribute byte. For example, a field displays starting in coordinate (5,11) for an AT (5,10) specification.
The following considerations apply to the placement of attribute bytes and fields:
Screen coordinates are designated as follows:
Specifies that the field can appear anywhere on the screen. ANYWHERE is meaningful only with mapin operations for which the requesting program reads extraneous data. Extraneous data is data that is not associated with a field at a specific row/column location.
Specifies the row and column coordinates for the attribute byte for the field:
The following considerations apply when positioning multiply-occurring fields:
Specifies the attributes for the field. Only one ATTRIBUTES clause can occur in a given MFLD statement. ATTRIBUTES specifications apply to all occurrences of the field. Valid specifications are as follows:
Note: For more information about available attributes, see "Attributes List."
Specifies whether a delimit character is placed after the final position of a data field:
(pageable maps only). Specifies whether the field begins and/or ends the detail occurrence or an area on the pageable map:
The field assigned the DETAIL ONLY specification must begin on a new line (that is, it cannot begin on a line that contains characters for a field in the header area).
The field assigned the DETAIL START specification must begin on a new line (that is, it cannot begin on a line that contains characters for a field in the header area).
The field assigned the FOOTER START specification must begin on a new line (that is, it cannot begin on a line that contains characters for a field in the DETAIL END field). If assigned, the FOOTER START specification must be made for a field following the field assigned the DETAIL END specification.
Note: For more information about the areas of pageable maps, see "Pageable Maps."
Supplies string values to literal fields:
A maximum of 256 characters can be specified for a literal field in data-value
Specifies the mapout location of the cursor at runtime:
If CURSOR is specified in more than one MFLD statement for a given map, the runtime cursor is positioned at the field for which CURSOR was last specified at compile time. If CURSOR is not specified for any field on the map, the default runtime cursor location is the first UNPROTECTED field on the screen, or at coordinate 1,1 if there are no UNPROTECTED fields.
Specifies that the field is a literal field. A literal field is given a string value in the VALUE IS clause. If LITERAL, MESSAGE LENGTH, PAGE LENGTH, RESPONSE LENGTH, or DFLD is not specified in the MFLD statement, LITERAL is the default.
Specifies that the field is a message field. If included, length must be an integer greater than or equal to 1 and less than or equal to the total number of character positions on the smallest screen for which the map is intended. The default for length-n is 80.
Specifies that the field is a page field.
CA ADS only. Specifies that the field is a response field. If included, length must be an integer in the range 1 through 32. The default is 8.
Specifies that the field is a data field and associates the field with the record element named by data-field-name:
VERSION version-n must be used to specify the version number of the record if record-name is not unique in the map.
The length of a data field is not specified in the DFLD clause; the length is determined in one of the following ways:
A data field can contain as many character positions as are available on the smallest screen for which the map is intended, minus one character position for the attribute byte for the field.
Remaining MFLD clauses supply automatic editing and error-handling information for the field being defined. For more information about the features enabled by the clauses listed, see the chapter "Automatic Editing and Error Handling." The following MFLD clauses apply only when DFLD is specified for the field:
Note: For more information about the features enabled by the clauses listed, see the chapter "Automatic Editing and Error Handling."
Specifies whether help will be implemented for the field.
The name of the IDD module that contains the help text for the field.
If module name is specified, you can optionally specify:
Indicates whether operator input is required in the field:
Specifies whether the contents of a numeric field are reversed on mapin and again on mapout:
Indicates if the field should be underscored if it is blank. On mapin, trailing underscores are removed.
Indicates whether the field is processed by automatic editing and error-handling, and establishes an external picture for use in editing. The following options are available:
Note: For information about external pictures, see External Pictures.
Picture specifies an actual external picture, such as XX/XX/XX or XXX-XX-XXXX.
ZEROED (default) requests the field be filled with zeros of the appropriate data type when automatic editing is enabled for the given map and field and the operator erases the contents of the field.
RETAINED indicates that the data contained in the buffer should be retained when the operator erases the contents of the field.
DISPLAY (default) requests that the zeros be displayed.
BLANK requests that blanks be displayed instead of zeros.
Note: For a group data field, the only valid external picture is an alphanumeric one. Note also that edit and code tables are not supported for group data fields.
Specifies the edit table used for the field if automatic editing is enabled for the field and map:
Note: For more information about the use of edit tables, see "Edit and Code Tables".
If editing is enabled elsewhere for the field and no edit table is named by using the EDIT TABLE IS clause, the default edit table is the built-in table (if any) defined in the associated record element. If no edit table is named by the EDIT TABLE IS clause or defined in the element definition, no edit table is used. The following clauses can be included in an EDIT TABLE IS specification when the edit table is named:
LINK (default) indicates that the named edit table is to be linked as part of the map load module. The LINK specification is particularly useful for tables that contain items that cannot be used readily by another record element.
NOLINK indicates that the table is loaded dynamically at runtime. NOLINK is useful when the contents of a table change frequently.
VALIDATE specifies that the table contains valid values. An error occurs when the terminal operator enters a value that does not appear in the table.
INVALIDATE specifies that the table contains invalid values. An error occurs when the terminal operator enters a value that appears in the table.
DEFAULT (default) specifies that the VALID or INVALID specification given in the table definition should be used for the table.
Specifies the code table used for the field if automatic editing is enabled for the field and map:
Note: For more information about the use of code tables, see "Edit and Code Tables".
If editing is enabled elsewhere for the field, and no code table is named by using the CODE TABLE IS clause, the default code table is the built-in code table (if any) defined in the associated record element. If no code table is named by the CODE TABLE IS clause or defined in the element definition, no edit table is used. The following clauses can be included in a CODE TABLE IS specification when a code table is named:
LINK (default) indicates that the named code table is to be linked as part of the map load module. LINK is useful for tables that contain items that cannot be used readily by another record element.
NOLINK indicates that the table is loaded dynamically at runtime. NOLINK is useful when the contents of a table change frequently.
Defines the error message returned on mapout if the field is in error. The message is displayed in the message field defined for the map. If the map has no message field, the message is not displayed and processing continues normally (with CA ADS, the message is displayed on the CA ADS default message screen). The developer can specify any one of the following options:
ERROR AT row,column
Defines the two-character prefix to be used to locate the message in the dictionary of the message defined in the previous ERROR MESSAGE parameter when the field is found to be in error at runtime. The value defaults to the value specified in the MSG PREFIX parameter in the MAP statement.
Specifies functions performed for data on a mapin operation:
Specifies how operator input is to be aligned for transmission to program variable storage:
Specifies a pad character for an alphanumeric field in character or hexadecimal format:
Pad characters are used to avoid unwanted data being stored for a field on mapin. For example, a data field containing the name JOHNSON is mapped out. The operator presses the ERASE EOF key to erase the field, types in SMITH, and presses Enter. The value mapped to variable storage depends on whether a pad character is defined for the field:
Indicates whether the transmitted contents (if any) of the field are to be moved automatically into program variable storage on a mapin operation:
Indicates if field should be displayed in uppercase.
Optionally specifies the name of an existing user-written edit module to process input after transmission on a mapin operation. The relationship between the user edit module and automatic editing is determined by the WITH AUTOEDIT clause as follows:
User edit modules are discussed in "Automatic Editing and Error Handling".
Specifies functions to be performed for data prior to a mapout operation:
Indicates whether trailing blanks are to be eliminated from the field prior to display:
Indicates whether data in program variable storage is to be transmitted to the screen on a mapout operation:
Optionally specifies the name of an existing user-written edit module to process data before display on a mapout operation. The relationship between the user edit module and automatic editing is determined by the WITH AUTOEDIT clause as described as follows:
User-written edit modules are discussed in the chapter "Automatic Editing and Error Handling."
Copyright © 2013 CA.
All rights reserved.
|
|