Previous Page | Next Page

Functions for NLS

KSUBSTRB Function



Extracts a substring from an argument according to the byte position of the substring in the argument.
Category: DBCS
Restriction: I18N Level 2

Syntax
Arguments
Details
See Also

Syntax

KSUBSTRB(argument,position<,n>)


Arguments

argument

specifies any SAS character expression.

position

specifies the beginning character position in byte units.

n

specifies the length of the substring to extract in byte units.

Interaction: If n is larger than the length (in byte units) of the expression that remains in argument after position, SAS extracts the remainder of the expression.
Tip: If you omit n, SAS extracts the remainder of the expression.

Details

The KSUBSTRB function returns a portion of an expression that you specify in argument. The portion begins with the byte unit specified by position and is the number of byte units specified by n.

A variable that is created by KSUBSTRB obtains its length from the length of argument.


See Also

Functions:

KSUBSTR Function

Previous Page | Next Page | Top of Page