Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

Equivalent data types

Simple type equivalence
Struct type equivalence
Enum type equivalence
File type equivalence

The table Table 31 lists the common C and PL/I data type equivalents.

Table 31. C and PL/I Type Equivalents
C type
Matching PL/I type
char[...]
char(...) varyingz
wchar[...]
wchar(...) varyingz
signed char
fixed bin(7)
unsigned char
unsigned fixed bin(8)
short
fixed bin(15)
unsigned short
unsigned fixed bin(16)
int
fixed bin(31)
unsigned int
unsigned fixed bin(32)
long long
fixed bin(63)
unsigned long long
unsigned fixed bin(64)
float
float bin(21)
double
float bin(53)
long double
float bin(p) (p >= 54)
enum
ordinal
typedef
define alias
struct
define struct
union
define union
struct *
handle

Terms of use | Feedback

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