Passing Parameters Between Maintain and WebFOCUS Procedures: FROM…INTO
When you EXEC a WebFOCUS procedure, you can pass
variables (not stacks) to the called procedure, and receive stacks
back from the called procedure using the FROM and INTO keywords
in the EXEC command. The FROM keyword identifies the variables being passed,
and the INTO keyword identifies the stacks being received.
For more information on WebFOCUS procedures, see Using WebFOCUS Procedures in Your Application.
Note: You cannot use the Language Wizard to specify the
FROM and INTO phrases; you must type them in by hand.
x
Reference: Usage Notes for Input and Output Parameters in the EXEC Command
When
you are passing input variables to and receiving output from a WebFOCUS
procedure, the following rules apply:
- The WebFOCUS
procedure receives the input variables as numbered amper variables.
- You can pass
any scalar variable except for those defined as variable-length
character variables (that is, except for those defined as A0 or
TX).
- You cannot
pass stacks to the target procedure.
- The length
of a single input parameter cannot exceed 32,000 characters. The
total length of all specified input parameters cannot exceed 32,000
characters.
- The output
parameters must be stacks.
- If the WebFOCUS
procedure is a report request, it must have the statement ON TABLE PCHOLD
or ON TABLE PCHOLD AS HTMTABLE in it.
- If there are
multiple answer sets, define multiple stacks as output parameters.
- You can receive
data in any stack, except for those defined using Stack of.
- If the number
of stacks specified is fewer than the number returned, the extra
returned answer sets are ignored.