EBCDIC( ) function

Returns a string that has been converted to EBCDIC character encoding.

Syntax

EBCDIC(string)

Parameters

Name Type Description
string

character

The value to convert to EBCDIC.

Output

Character.

Examples

Basic examples

Returns "ñòó@Ɓ'…@â£K":

EBCDIC("123 Fake St.")

Advanced examples

Creating an EBCDIC-encoded field to export

To create a field containing the EBCDIC encoded value of a Name field for export to an application that requires EBCDIC encoding, specify the following:

DEFINE FIELD Name_Exp COMPUTED EBCDIC(Name)

Remarks

When to use EBCDIC( )

Use this function to convert data to the Extended Binary Coded Decimal Interchange Code (EBCDIC) character encoding. EBCDIC character encoding is used primarily on IBM mainframe operating systems, such as z/OS.

ACL Scripting Guide 14.1