Previous Topic: Linking to CA OLQNext Topic: Linking Built-In Functions With The Runtime System


Passing Syntax to CA OLQ

To pass syntax to CA OLQ, perform the following steps:

  1. Initialize the UNIVERSAL-COMMUNICATIONS-ELEMENT version 2 record.
  2. Initialize an additional record to hold the CA OLQ syntax. The record must contain only syntax and must not contain counters or any other values.
  3. Move the syntax to the additional record.
  4. Issue an EXECUTE NEXT FUNCTION control command to initiate an ADSA program function that links to program IDMSOLQS, passing both the UCE and the syntax record in the program parameter list.

Example

INITIALIZE(UNIVERSAL-COMMUNICATIONS-ELEMENT,SYNTAX-RECORD).
MOVE 'SIGNON SS=EMPSS01 ! SEL * FROM EMPLOYEE ! MEN DISPLAY;'
         TO SYNTAX-FIELD.
EXECUTE NEXT FUNCTION.
RETURN.

Note: The exclamation point (!) is the CA OLQ separator for stacked commands. The semi-colon (;) is the required CA OLQ command terminator.

The command separator and terminator may differ from site to site, depending on the character set during system generation.