Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

7.123.1 TRANSFER Parameters

EXCHANGE

ONENTRY

TOFUNCTION

TOROUTINE


Anchor
TOFUNCTION
TOFUNCTION
TOFUNCTION

Specifies the name of the function that is to receive control. The current function ends when this command is executed and the function nominated in this parameter receives control.

...

If one of the previous values is not used then the name of another function that is defined within the same process must be specified.

Anchor
EXCHANGE
EXCHANGE
EXCHANGE

Specifies the name of the field(s) to be exchanged or the name of a group that defines the field(s) to be exchanged. When an expandable expression is used, the expanded field list must not exceed the maximum number of substitution variables allowed in the parameter.

...

The EXCHANGE parameter on this command is provided for convenience only. Using it is identical to using one or more EXCHANGE commands before the TRANSFER command. Thus:

     TRANSFER  TOFUNCTION(INPUT) EXCHANGE(#A #B #C #D)

is functionally identical to:

     EXCHANGE  FIELDS(#A #B #C #D)
TRANSFER  TOFUNCTION(INPUT)

which is functionally identical to:

     EXCHANGE  FIELDS(#A)
EXCHANGE  FIELDS(#B)
EXCHANGE  FIELDS(#C)
EXCHANGE  FIELDS(#D)
TRANSFER  TOFUNCTION(INPUT)

Anchor
TOROUTINE
TOROUTINE
TOROUTINE

Specifies the name of a WEBROUTINE to transfer to. You can specify another WAM, in this case the WAM name followed by a WEBROUTINE name separated by a dot (for example #MyWAM.MyWebRtn). Unlike a CALL command, after a transfer control does not return to the WEBROUTINE making the transfer.

...

The value can also be provided from a field, if prefixed with the *EVALUATE modifier.

Anchor
ONENTRY
ONENTRY
ONENTRY

Is valid when transferring to another WEBROUTINE only. For WEBROUTINE information, refer to WEBROUTINE.

...