Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
Data Item Functions
Data item functions are elementary data items and return alphanumeric,
national,
numeric or integer values. Data item functions are treated as elementary data items and cannot be receiving operands. The types of data item functions are:
- Alphanumeric functions. These are of the class and category alphanumeric. The number of character positions in this data item is specified in the function definition. Alphanumeric functions have an implicit usage of DISPLAY.
- Numeric functions. These are of the class and category numeric. A numeric function
is always considered to have an operational sign.
- A numeric function can be used only in an arithmetic expression
or as the source of a MOVE statement - A numeric function cannot be referenced where an integer operand is required, even though a particular reference can yield an integer value.
- A numeric function can be used only in an arithmetic expression
- Integer functions. These are of the class and category numeric. An integer function
is always considered to have an operational sign.
- An integer function can be used only in an arithmetic expression
or as the source of a MOVE statement
or anywhere an integer data item is not used as a receiving data item. - An integer function can be referenced where an integer operand is required and where a signed operand is allowed.
- An integer function can be used only in an arithmetic expression
National functions. These are of the class and category national. The number of character
positions in this data item is specified in the function definition. National functions
have an implicit usage of NATIONAL.