Previous Page | Next Page

Functions for NLS

KTRUNCATE Function



Truncates a numeric value to a specified length.
Category: DBCS
Restriction: I18N Level 2

Syntax
Arguments
Details

Syntax

KTRUNCATE(argument, number, length)


Arguments

argument

specifies any SAS character expression.

number

is numeric.

length

is an integer.


Details

The KTRUNCATE function truncates a full-length number (stored as a double) to a smaller number of bytes, as specified in length and pads the truncated bytes with 0s. The truncation and subsequent expansion duplicate the effect of storing numbers in less than full length and then reading them.

Previous Page | Next Page | Top of Page