Variable Length Request
Usage Notes
The Variable Length Request field specifies the location of the length information for the request.
Language |
Variable Name |
COBOL: |
DBCAREA-VAR-LEN-REQ |
C: DBCAREA.H: |
var_len_req |
Routine |
Action Taken |
DBCHINI: |
writes |
DBCHCL: |
reads (CON; RSUP: IRQ) |
Used by |
Action Taken |
application program |
writes |
Variable Length Request is initialized by DBCHINI to the default value provided for Variable Length Request in the site’s SPB.
If the value provided is not appropriate for the application, before calling DBCHCL for the Connect, Run Startup, or Initiate Request function, the application program may set:
For example, to do a request, the application program must supply to DBCHCL both the length and the address of the request.
The Variable Length Request setting affects only the request string. The logon string, run string, and input data string always have the length supplied separately from the string.
Note: The fragments of the string must be in the following order, if applicable:
two-byte length information
followed by n-byte indicator information
followed by bytes containing the
text or value information
In situations in which only two fragments apply, they must be in the order shown above. In all cases, the pointer to the string must contain the address of the first fragment that is supplied.