SFTDEL: Deleting the Shift Code From DBCS Data

How to:

If your configuration uses a DBCS code page, you can use the SFTDEL function to delete the shift code from DBCS data.

Syntax: How to Delete the Shift Code From DBCS Data

SFTDEL(source_string, length, output)

where:

source_string

Alphanumeric

Is the string from which the shift code will be deleted .

length

Integer

Is the length of the source string in bytes. The string can have a mixture of DBCS and SBCS characters. Therefore, the number of bytes represents the maximum number of characters possible in the source string.

output

Alphanumeric

Example: Deleting the Shift Code From a String

In the following, SFTDEL deleted the shift code from the COUNTRY field (up to 10 bytes long):

COUNTRY_DEL/A10 = SFTDEL(COUNTRY, 10, 'A10');

The output in ASCII environments is shown in the following image:

The output in EBCDIC environments is shown in the following image:

WebFOCUS

Feedback