Purpose

CHAR returns the character of a numeric value, depending on the character set of the system (e.g. ASCII or EBCDIC).
 

Syntax

CHAR (operand)
 

Operation

operand is any valid numeric constant, variable, or expression evaluating to between 0 and 255.
 

Remarks
 

 

Example

Assume that #B = 193 and #C = 111.

$A = CHAR(#B)   sets $A to an EBCDIC ‘A’ or ASCII
$A = CHAR(#C)   sets $A to an EBCDIC ‘?’ or ASCII

Assume that #B = 65 and #C = 63.

$A = CHAR(#B)   sets $A to an ASCII ‘A’ or EBCDIC
$A = CHAR(#C)   sets $A to an ASCII ‘?¢
or EBCDIC
 

Comment on this topic

Topic ID: 520030

 
 
 

Table of Contents

Index

Glossary

-Search-

Back