Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Built-in functions, pseudovariables, and subroutines.

Declaring and invoking built-in functions, pseudovariables, and built-in subroutines
BUILTIN attribute
Invoking built-in functions and pseudovariables
Invoking built-in subroutines
Specifying arguments for built-in functions, pseudovariables, and built-in subroutines
Aggregate arguments
Null and optional arguments
Accuracy of mathematical functions
Categories of built-in functions
Arithmetic built-in functions
Array-handling built-in functions
Buffer-management built-in functions
Condition-handling built-in functions
Date/time built-in functions
Floating-point inquiry built-in functions
Floating-point manipulation built-in functions
Input/output built-in functions
Integer manipulation built-in functions
Mathematical built-in functions
Miscellaneous built-in functions
Ordinal-handling built-in functions
Precision-handling built-in functions
Pseudovariables
Storage control built-in functions
String-handling built-in functions
Subroutines
ABS
ACOS
ADD
ADDR
ADDRDATA
ALL
ALLOCATE
ALLOCATION
ALLOCSIZE
ANY
ASIN
ATAN
ATAND
ATANH
AUTOMATIC
AVAILABLEAREA
Example
BINARY
BINARYVALUE
BIT
BITLOCATION
BOOL
BYTE
CDS
CEIL
CENTERLEFT
Example
CENTRELEFT
CENTERRIGHT
Example
CENTRERIGHT
CHARACTER
Example
CHARGRAPHIC
Example 1
Example 2
CHARVAL
CHECKSTG
COLLATE
COMPARE
Example
COMPLEX
CONJG
COPY
COS
COSD
COSH
COUNT
CS
CURRENTSIZE
CURRENTSTORAGE
DATAFIELD
DATE
DATETIME
DAYS
Example
DAYSTODATE
DAYSTOSECS
DECIMAL
DIMENSION
DIVIDE
EDIT
Example
EMPTY
ENDFILE
ENTRYADDR
ENTRYADDR pseudovariable
EPSILON
ERF
ERFC
EXP
EXPONENT
FILEDDINT
FILEDDTEST
FILEDDWORD
FILEID
FILEOPEN
FILEREAD
FILESEEK
FILETELL
FILEWRITE
FIXED
FIXEDBIN
FIXEDDEC
FLOAT
FLOATBIN
FLOATDEC
FLOOR
GAMMA
GETENV
GRAPHIC
Example 1
Example 2
HANDLE
HBOUND
HEX
Example 1
Example 2
HEXIMAGE
HIGH
HUGE
IAND
IEOR
IMAG
IMAG pseudovariable
INDEX
Example
INOT
Examples
IOR
ISIGNED
Examples
ISLL
Examples
ISFINITE
ISINF
ISMAIN
ISNAN
ISNORMAL
ISZERO
ISRL
Examples
IUNSIGNED
Examples
LBOUND
LEFT
Example
LENGTH
LINENO
LOCATION
Example
LOG
LOGGAMMA
LOG2
LOG10
LOW
LOWERCASE
LOWER2
Examples
MAX
MAXEXP
Example (Intel Values)
Example (AIX Values)
Example (z/OS Hexdecimal Values)
Example (z/OS IEEE Binary Floating Point Values)
Example (z/OS IEEE Decimal Floating Point Values)
MAXLENGTH
Example
MEMCONVERT
MEMINDEX
Example
MEMSEARCH
Example
MEMSEARCHR
Example
MEMVERIFY
Example
MEMVERIFYR
Example
MIN
MINEXP
Example (Intel Values)
Example (AIX Values)
Example (z/OS Hexadecimal Values)
Example (z/OS IEEE Binary Floating Point Values)
Example (z/OS IEEE Decimal Floating Point Values)
MOD
Example
MPSTR
MULTIPLY
NULL
OFFSET
OFFSETADD
OFFSETDIFF
OFFSETSUBTRACT
OFFSETVALUE
OMITTED
ONCHAR
ONCHAR pseudovariable
ONCODE
ONCONDCOND
ONCONDID
ONCOUNT
ONFILE
ONGSOURCE
ONGSOURCE pseudovariable
ONKEY
ONLINE
ONLOC
ONOFFSET
ONSOURCE
ONSOURCE pseudovariable
ONSUBCODE
ONWCHAR
ONWCHAR pseudovariable
ONWSOURCE
ONWSOURCE pseudovariable
ORDINALNAME
ORDINALPRED
ORDINALSUCC
PACKAGENAME
PAGENO
PICSPEC
PLACES
Example (Intel Values)
Example (AIX Values)
Example (z/OS Hexadecimal Values)
Example (z/OS IEEE Binary Floating Point Values)
Example (z/OS IEEE Decimal Floating Point Values)
PLIASCII
PLICANC
PLICKPT
PLIDELETE
PLIDUMP
PLIEBCDIC
PLIFILL
Example
PLIFREE
PLIMOVE
Example
PLIOVER
PLIREST
PLIRETC
PLIRETV
PLISAXA
PLISAXB
PLISAXC
PLISRTA
PLISRTB
PLISRTC
PLISRTD
POINTER
POINTERADD
POINTERDIFF
POINTERSUBTRACT
POINTERVALUE
POLY
PRECISION
PRED
PRESENT
PROCEDURENAME
PROD
PUTENV
RADIX
RAISE2
Example
RANDOM
RANK
REAL
REAL pseudovariable
REG12
REM
REPATTERN
REPEAT
REPLACEBY2
REVERSE
Example
RIGHT
Example
ROUND
ROUND of FIXED
ROUND of IEEE decimal floating point
ROUND of IEEE binary floating point
ROUND of IBM hexadecimal floating point
SAMEKEY
SCALE
SEARCH
Example
Example
SEARCHR
Example
SECS
Example
SECSTODATE
SECSTODAYS
SIGN
SIGNED
SIN
SIND
SINH
SIZE
Example
SOURCEFILE
SOURCELINE
SQRT
SQRTF
STACKADDR
STORAGE
STRING
STRING pseudovariable
SUBSTR
SUBSTR pseudovariable
SUBTRACT
SUCC
SUM
SYSNULL
SYSTEM
TALLY
Example
TAN
TAND
TANH
THREADID
TIME
TINY
TRANSLATE
Example
TRIM
Example
TRUNC
TYPE
TYPE pseudovariable
ULENGTH
ULENGTH8
ULENGTH16
UNALLOCATED
UNSIGNED
UNSPEC
UNSPEC pseudovariable
Example
UPOS
UPPERCASE
USUBSTR
UVALID
UWIDTH
VALID
VALIDDATE
Example
VARGLIST
VARGSIZE
VERIFY
Example
VERIFYR
Example
WCHARVAL
WEEKDAY
WHIGH
WIDECHAR
WLOW
XMLCHAR
Example
Y4DATE
Y4JULIAN
Y4YEAR

A large number of common tasks are available in the form of built-in functions, subroutines, and pseudovariables. When you use them, you can write less code more quickly with greater reliability.

The built-in functions, subroutines, and pseudovariables are listed in alphabetic order in this chapter. In general, each description has the following format:

The abbreviations for built-in functions have separate declarations (explicit or contextual) and name scopes. In the following example:

  dcl (Dim, Dimension) builtin;

is not a multiple declaration, and

  dcl Binary file;
  X = Bin (var, 6,3);

is valid even though Bin is an abbreviation of the Binary built-in function.


Terms of use | Feedback

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