Previous Page | Next Page

Functions for NLS

KUPDATEB Function



Inserts, deletes, and replaces the contents of the character value according to the byte position of the character value in the argument.
Category: DBCS
Restriction: I18N Level 2

Syntax
Arguments
Details
See Also

Syntax

KUPDATEB(argument,position,n<,characters-to-replace>)
KUPDATEB(argument,position <, n>, characters-to-replace)


Arguments

argument

specifies a character variable.

position

specifies the beginning character position in byte units.

n

specifies the length of the substring to be replaced in byte units.

Restriction: n cannot be larger than the length (in bytes) of the expression that remains in argument after position.
Restriction: n is optional, but you cannot omit both n and characters-to-replace from the function.
Tip: If you omit n, SAS uses all of the characters in characters-to-replace to replace the values of argument.
characters-to-replace

specifies a character expression to replace the contents of argument.

Restriction: characters-to-replace is optional, but you cannot omit both characters-to-replace and n from the function.
Tip: Enclose a literal string of characters in quotation marks.

Details

The KUPDATEB function replaces the value of argument with the expression in characters-to-replace. KUPDATEB replaces n byte units starting at the byte unit that you specify in position.


See Also

Functions:

KUPDATE Function

Previous Page | Next Page | Top of Page