15.10 - Variable Length Request Option - Call-Level Interface Version 2

Teradata Call-Level Interface Version 2 Reference for Mainframe-Attached Systems

prodname
Call-Level Interface Version 2
vrm_release
15.10
category
Programming Reference
featnum
B035-2417-035K

The setting of the Variable Length Request option affects the setting of the following:

  • Logon Pointer
  • Logon Length
  • Mechanism‑data‑ptr
  • Mechanism‑data‑length
  • Run Pointer
  • Run Length
  • Request Pointer
  • Request Length
  • Session‑desc‑pointer
  • Session‑desc‑length
  • Using Data Pointer
  • Using Data Length
  • Workload‑pointer
  • Workload‑length
  •  

    Setting

    Result

    N

    The xxxx_pointer contains the starting address of the actual logon string, run string, Teradata SQL request, or using data.

    The xxxx_length is set to the length of the corresponding data.

    Y

    The xxxx_pointer contains the address of a two‑byte length, which must immediately precede the actual text or data.

    The length provided measures only the length of the text or data and does not include the two bytes of its own length. The xxxx_length field is ignored.

    If the Maximum Parcel option is set to H, then the two‑byte length is considered to be an unsigned value. Because PL/I does not support unsigned integers, you cannot use the Variable Length Request option to allow the PL/I VARYING attribute for the Request Pointer or the Using Data Pointer for requests greater than 32767.

    Since the maximum value that can be contained in the two-byte length is 65535, larger lengths cannot use Variable‑length‑requests.