Processing with keyword variables

If the client application is sending keyword variables, MainframeConnect (with the Access Service Library) or Open ServerConnect (with TRS):

If the arguments are not in keyword format, MainframeConnect or Open ServerConnect sets the SPVARTAB to '0'.

The keyword variable substitution table contains a full word count of the number of keywords that were specified, followed by one keyword entry for each keyword specified. The following figure illustrates the variable substitution table.

Figure 2-1: Keyword variable substitution table

The figure shows an example of the variable substitution table.

Figure 2-2 illustrates the keyword entry format.

Figure 2-2: Keyword entry format

The table describes the keyword entry format.

The fields in the keyword entry are in integer format; addresses are 4 bytes long and lengths are 2 bytes long. For example, if the client application passed the following single variable:

&DATE=1991-12-04

the variable substitution table built by MainframeConnect or Open ServerConnect might appear as follows:

10000253D		000254F			5		10

See Appendix D, “RSP4C Keyword Variable Sample RSP” and Appendix E, “RSP8C Variable Text Sample RSP” for sample RSPs that handle variables.