Rational Developer for System z
Enterprise PL/I for z/OS, Version 4.1, Compiler and Run-Time Migration Guide

String-handling built-in function for conversion of DBCS character strings

The Enterprise PL/I compiler still supports the CHAR built-in function although it now views CHAR as an abbreviation for CHARACTER. The results of the CHAR built-in function are the same as in the old PL/I for MVS compiler except when the first argument has the GRAPHIC type:

For example, if X is GRAPHIC(3) and holds the byte .A.B.C, the results are as follows:

The following examples show how to change your code to obtain the results produced by the old compiler:

For more information about the CHARACTER and CHARGRAPHIC built-in functions, see CHARACTER and CHARGRAPHIC under the chapter Built-in functions, pseudovariables, and subroutines in Enterprise PL/I for z/OS Compiler and Run-Time Migration Guide.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)