Intrinsic functions and national data
You can use arguments of class national with the intrinsic functions shown in the table below.
Intrinsic function | Function type | For more information |
---|---|---|
![]() BIT-OF ![]() |
![]() ![]() |
![]() ![]() |
![]() BYTE-LENGTH ![]() |
![]() ![]() |
![]() ![]() |
DISPLAY-OF |
Alphanumeric | Converting national to alphanumeric (DISPLAY-OF) |
![]() HEX-OF ![]() |
![]() ![]() |
![]() ![]() |
LENGTH |
Integer | Finding the length of data items |
LOWER-CASE , UPPER-CASE |
National | Changing case (UPPER-CASE, LOWER-CASE) |
NUMVAL , NUMVAL-C ,
|
Numeric | Converting to numbers (NUMVAL, NUMVAL-C, NUMVAL-F) |
MAX , MIN |
National | Finding the largest or smallest data item |
ORD-MAX , ORD-MIN |
Integer | Finding the largest or smallest data item |
![]() REVERSE ![]() |
![]() ![]() |
![]() ![]() |
![]() TEST-NUMVAL , TEST-NUMVAL-C ,
![]() |
![]() ![]() |
![]()
![]() |
![]() TRIM ![]() |
![]() ![]() |
![]() ![]() |
![]() ULENGTH ![]() |
![]() ![]() |
![]() ![]() |
![]() UPOS ![]() |
![]() ![]() |
![]() ![]() |
![]() USUBSTR ![]() |
![]() ![]() ![]() ![]() |
![]() ![]() |
![]() USUPPLEMENTARY ![]() |
![]() ![]() |
![]() ![]() |
![]() UVALID ![]() |
![]() ![]() |
![]() ![]() |
![]() UWIDTH ![]() |
![]() ![]() |
![]() ![]() |
You can use national decimal arguments wherever zoned decimal arguments are allowed. You can use national floating-point arguments wherever display floating-point arguments are allowed. (See the related reference below about arguments for a complete list of intrinsic functions that can take integer or numeric arguments.)
related references
Arguments (Enterprise COBOL for z/OS Language Reference)
Classes and categories of data (Enterprise COBOL for z/OS Language Reference)
Intrinsic functions (Enterprise COBOL for z/OS Language Reference)
Arguments (Enterprise COBOL for z/OS Language Reference)
Classes and categories of data (Enterprise COBOL for z/OS Language Reference)
Intrinsic functions (Enterprise COBOL for z/OS Language Reference)