Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Character Intrinsic Functions

The following table lists character intrinsic functions.

Name

Description

ACHAR

Returns character in a specified position in the ASCII character set.

ADJUSTL

Adjusts left, removing leading blanks and inserting trailing blanks.

ADJUSTR

Adjusts right, removing trailing blanks and inserting leading blanks.

CHAR

Returns character in a specified position in the processor's character set of (optional) kind.

IACHAR

Returns the position of the argument in the ASCII character set.

ICHAR

Returns the position of the argument in the processor's character set.

INDEX

Returns the starting position of a substring in a string, leftmost or (optional) rightmost occurance.

LEN

Returns the size of the argument.

LEN_TRIM

Returns the number of characters in the argument, not counting trailing blanks.

LGE

Tests whether the the first argument is greater than or equal to the second argument, based on the ASCII collating sequence.

LGT

Tests whether the first argument is greater than the second argument, based on the ASCII collating sequence.

LLE

Tests whether the first argument is less than or equal to the second argument, based on the ASCII collating sequence.

LLT

Tests whether the first argument is less than the second argument, based on the ASCII collating sequence.

REPEAT

Concatenates multiple copies of a string.

SCAN

Scans a string for any characters in a set and returns leftmost or (optional) rightmost position where a match is found.

TRIM

Removes trailing blanks from a string.

VERIFY

Returns the position of the leftmost or (optional) rightmost character in the argument string not in a set, or zero if all characters in the set are present.