ENTMF 

The CONTENT-OF Function

The CONTENT-OF function returns the content of the specified argument. The type of this function depends on the argument type.

General Format

The CONTENT-OF Function

Arguments

  1. Argument-1 can be one of alphabetic, alphanumeric, integer, numeric, national, or UTF-8.

Returned Values

  1. The returned value represents the content of argument-1.
  2. The size of the returned value is the same size as argument-1.

Example

You can employ this function when passing an item to a user-defined function BY CONTENT. To achieve this, the user-defined function must state that the parameter be passed BY REFERENCE in the USING phrase, and then when invoking the function, the argument is specified using the CONTENT-OF function. For example:

compute result = mffcn(content-of(arg-1) arg-2)