Transaction production bridged functions  setTblDir

Chapter 2: Bridged Functions

charTrans

Description

Allows you to call the CharTranslate built-in function within a message AIM, rather than including it in a production object. If source and targets are not properly defined, a error message states that it could not find the target.

Syntax

charTrans (&data,'\000', “ASCII”, “T-11 EBCDIC”);

Parameter

Description

&data

Defines the incoming data to be translated. Can be string or blob datatype.

‘\000’

Sets the mode variable. Set to \000 to fail if a character cannot be translated. Set to \002 to use the default value if the character cannot be translated.

ASCII

String that defines the source from which any character set is translated; for example, the ASCII character set.

T-11 EBCDIC

String that defines the target to which any character set is translated; for example, the T-11 EBCDIC character set.

Return value

Integer.

Returns 1 for success, and 0 for failure.





Copyright © 2005. Sybase Inc. All rights reserved. setTblDir

View this book as PDF