Previous Topic: Format of DataNext Topic: Macros for Output Modules


Parameters Passed to Output Modules

Runtime mapping loads a user-written edit module from the CA IDMS/DC. load library. The address words that are placed in the parameter list summarized in the following table are referenced from CA IDMS/DC off the address passed in register 1.

Address Word

Data Element

1

Data field in the application program data record

2

Target field in the output buffer for edited data

3

Map Request Element for the data field (MRE DSECT)

4

Map Control Element for the data field (MCE DSECT)

5

Physical Terminal Element (PTE DSECT)

6

Map Request Block (MRB DSECT)

The online compiler inserts an attribute byte in the first position of the output screen buffer.

If the user-written edit module is executed instead of or after automatic editing, register 1 must be set to point past the final character of the edited data.

Control returns to runtime mapping after the user edit module and automatic editing (if executed) finish editing the data. The value in register 1 is used to scan for and eliminate trailing blanks from the edited data if requested by either the BACKSCAN option of the online compiler Field Edit screen or the BACKSCAN clause of the batch mapping MFLD statement.