This version of the #MAPINQ statement tests for one of the following conditions related to map input operations:
Syntax
►►─── #MAPINQ MRB=map-request-block-pointer ──────────────────────────────────► ►─┬─────────────────────────────────────────────┬────────────────────────────► └─ ,MRBLIST= ─┬─ MRBPLIST ◄ ─────────────────┬┘ └─ mrb-parameter-list-pointer ─┘ ►─── ,CURSOR=cursor-position ────────────────────────────────────────────────► ►─── ,AID=aid-indicator ─────────────────────────────────────────────────────► ►─┬─────────────────────────────────────────────────────────┬────────────────►◄ └─ ,IF= ( ─┬─ UNFORMAT,unformatted-screen-label─────┬─ ) ─┘ ├─ TRUNCATE,truncated-data-label ────────┤ ├─ CHANGED,updated-data-label ───────────┤ └─ XTRNEOUS,extraneous-input-data-label ─┘
Parameters
Specifies the storage area associated with the MRB of the map about which the inquiry is being made.
A register that points to the MRB area or the symbolic name of that area.
Specifies the location of the 20-fullword storage area that is substituted for the DC/UCF portion of SUBSCHEMA-CTRL.
(Default); is the symbolic name of the storage area that will be substituted for the DC/UCF portion of SUBSCHEMA-CTRL.
A register that points to the area or the symbolic name of the area.
Requests that the system return the cursor address from the last map in operation to the specified location in the issuing program.
The symbolic name of a 2-byte user-defined field. The system will set the value of cursor-position to the row and the column, each a 1-byte binary number, of the cursor position on the screen.
Requests that the system return the AID to the specified location in the issuing program.
The symbolic name of a 1-byte user-defined field that will be set to the 3270 AID character received in the last map in request.
Tests the outcome of the last map in request for a condition relating to the data input as a whole. Map data fields that are in error are not transferred to program variable storage.
Note: For more information about testing map input conditions, see the Mapping Facility Guide.
For each condition, the associated label specifies the symbolic name of the routine in the issuing program to which the system will pass control if the tested condition is true. The IF-parameter condition and label must be enclosed in parentheses.
Tests whether the screen had been formatted before the input operation was performed.
Tests whether any of the screen fields had been truncated when transmitted to program variable storage.
Tests whether any of the screen fields actually had been mapped to program data fields when the map in operation was performed.
Tests whether the data stream that had been read from the terminal contains any data from a field undefined to the map. If this condition occurs, the system does not move the undefined data field to program variable storage.
Example
The following example of the #MAPINQ statement tests if any of the screen fields have been updated to the program data fields of the map identified by BLOCK1 when the last map in operation was performed. If the test is true, the program branches to the label NEWINFO. A false condition causes the program to execute the next sequential instruction:
#MAPINQ MRB=BLOCK1,IF=(CHANGED,NEWINFO)
|
Copyright © 2014 CA.
All rights reserved.
|
|