Example of specifying keywords

Issue an FCQUERY request with the DEVN, QRYSIZE, FORMAT and QRYINFO keywords.

  1. Define the keywords in variable INOUT, which is the stem of a REXX compound variable:
    INOUT.0 = 4
    INOUT.1 = 'DEVN(0A00)’
    INOUT.2 = 'QRYSIZE(2000)’
    INOUT.3 = 'FORMAT(FQMAP)’
    INOUT.4 = 'QRYINFO()’

    Note that the value of INOUT.0 is a count of the number of values in the stem.

  2. Call ANTTREXX with an FCQUERY request, specifying variable INOUT:
    CALL ANTTREXX 'FCQUERY’ , 'INOUT’
  3. Display the information from the query. The keyword for the output field is QRYINFO, which is in INOUT.4.
    SAY INOUT.4