Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual
Contents
Tables
Figures
About this book
Notation conventions used in this book
Semantics
Industry standards used
Enhancements in this release
Enhancements from V3R7
Enhancements from V3R6
Enhancements from V3R5
Enhancements from V3R4
Enhancements from V3R3
Enhancements from V3R2
Enhancements from V3R1
How to send your comments
Program elements
Single-byte character set
Statement elements for SBCS
Statements
Groups
Double-byte character set
Data elements
Data items
Data types and attributes
Computational data types and attributes
Expressions and references
Order of evaluation
Targets
Operational expressions
Array expressions
Structure expressions
Restricted expressions
Data conversion
Built-in functions for computational data conversion
Converting string lengths
Converting arithmetic precision
Converting mode
Converting other data attributes
Source-to-target rules
Examples
Program organization
Programs
Blocks
Packages
Procedures
Subroutines
Built-in subroutines
Functions
Passing arguments to procedures
Begin-blocks
Entry data
Entry invocation or entry value
CALL statement
RETURN statement
OPTIONS option and attribute
RETURNS option and attribute
Type definitions
User-defined types (aliases)
Defining ordinals
Defining typed structures and unions
Declaring typed variables
Typed structure qualification
Using ordinals
Type functions
Data declarations
Explicit declaration
Implicit declaration
Scope of declarations
RESERVED attribute
SUPPRESS attribute
Data alignment
Defaults for attributes
Arrays
Structures
Unions
Structure/union qualification
LIKE attribute
Examples
NOINIT attribute
Aggregate combinations and mapping
Statements and directives
ALLOCATE statement
Assignment and compound assignment statements
ATTACH statement
BEGIN statement
CALL statement
CLOSE statement
DECLARE statement
DEFINE ALIAS statement
DEFINE ORDINAL statement
DEFINE STRUCTURE statement
DEFAULT statement
DELAY statement
DELETE statement
DETACH statement
DISPLAY statement
DO statement
END statement
ENTRY statement
EXIT statement
FETCH statement
FLUSH statement
FORMAT statement
FREE statement
GET statement
GO TO statement
IF statement
%INCLUDE directive
ITERATE statement
LEAVE statement
%LINE directive
LOCATE statement
%NOPRINT directive
%NOTE directive
null statement
ON statement
OPEN statement
%OPTION directive
OTHERWISE statement
PACKAGE statement
%PAGE directive
%POP directive
%PRINT directive
PROCEDURE statement
%PROCESS directive
*PROCESS directive
%PUSH directive
PUT statement
READ statement
RELEASE statement
RESIGNAL statement
RETURN statement
REVERT statement
REWRITE statement
SELECT statement
SIGNAL statement
%SKIP directive
STOP statement
WAIT statement
WHEN statement
WRITE statement
%XINCLUDE statement
Storage control
Storage classes, allocation, and deallocation
Static storage and attribute
Automatic storage and attribute
Controlled storage and attribute
Based storage and attribute
Area data and attribute
List processing
ASSIGNABLE and NONASSIGNABLE attributes
NORMAL and ABNORMAL attributes
BIGENDIAN and LITTLEENDIAN attributes
HEXADEC and IEEE attributes
CONNECTED and NONCONNECTED attributes
DEFINED and POSITION attributes
INITIAL attribute
Input and output
Data sets
Files
Opening and closing files
SYSPRINT and SYSIN
Record-oriented data transmission
Data transmitted
Data transmission statements
Options of data transmission statements
Processing modes
Stream-oriented data transmission
Data transmission statements
Options of data transmission statements
Transmission of data-list items
Data-directed data specification
Restrictions on data-directed data
Edit-directed data specification
List-directed data specification
PRINT attribute
DBCS data in stream I/O
Edit-directed format items
A-format item
B-format item
C-format item
COLUMN format item
E-format item
F-format item
G-format item
L-format item
LINE format item
P-format item
PAGE format item
R-format item
SKIP format item
V-format item
X-format item
Picture specification characters
Picture repetition factor
Picture characters for character data
Picture characters for numeric character data
Condition handling
Condition prefixes
On-units
REVERT statement
SIGNAL statement
RESIGNAL statement
Multiple conditions
CONDITION attribute
Conditions
ANYCONDITION condition
AREA condition
ATTENTION condition
CONDITION condition
CONVERSION condition
ENDFILE condition
ENDPAGE condition
ERROR condition
FINISH condition
FIXEDOVERFLOW condition
INVALIDOP condition
KEY condition
NAME condition
OVERFLOW condition
RECORD condition
SIZE condition
STORAGE condition
STRINGRANGE condition
STRINGSIZE condition
SUBSCRIPTRANGE condition
TRANSMIT condition
UNDEFINEDFILE condition
UNDERFLOW condition
ZERODIVIDE condition
Multithreading facility
Creating a thread
ATTACH statement
Terminating a thread
Waiting for a thread to complete
Detaching a thread
Condition handling
Task data and attribute
Sharing data between threads
Sharing files between threads
Built-in functions, pseudovariables, and subroutines.
Declaring and invoking built-in functions, pseudovariables, and built-in subroutines
Specifying arguments for built-in functions, pseudovariables, and built-in subroutines
Accuracy of mathematical functions
Categories of built-in functions
ABS
ACOS
ADD
ADDR
ADDRDATA
ALL
ALLOCATE
ALLOCATION
ALLOCSIZE
ANY
ASIN
ATAN
ATAND
ATANH
AUTOMATIC
AVAILABLEAREA
BINARY
BINARYVALUE
BIT
BITLOCATION
BOOL
BYTE
CDS
CEIL
CENTERLEFT
CENTRELEFT
CENTERRIGHT
CENTRERIGHT
CHARACTER
CHARGRAPHIC
CHARVAL
CHECKSTG
COLLATE
COMPARE
COMPLEX
CONJG
COPY
COS
COSD
COSH
COUNT
CS
CURRENTSIZE
CURRENTSTORAGE
DATAFIELD
DATE
DATETIME
DAYS
DAYSTODATE
DAYSTOSECS
DECIMAL
DIMENSION
DIVIDE
EDIT
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
HANDLE
HBOUND
HEX
HEXIMAGE
HIGH
HUGE
IAND
IEOR
IMAG
IMAG pseudovariable
INDEX
INOT
IOR
ISIGNED
ISLL
ISFINITE
ISINF
ISMAIN
ISNAN
ISNORMAL
ISZERO
ISRL
IUNSIGNED
LBOUND
LEFT
LENGTH
LINENO
LOCATION
LOG
LOGGAMMA
LOG2
LOG10
LOW
LOWERCASE
LOWER2
MAX
MAXEXP
MAXLENGTH
MEMCONVERT
MEMINDEX
MEMSEARCH
MEMSEARCHR
MEMVERIFY
MEMVERIFYR
MIN
MINEXP
MOD
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
PLIASCII
PLICANC
PLICKPT
PLIDELETE
PLIDUMP
PLIEBCDIC
PLIFILL
PLIFREE
PLIMOVE
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
RANDOM
RANK
REAL
REAL pseudovariable
REG12
REM
REPATTERN
REPEAT
REPLACEBY2
REVERSE
RIGHT
ROUND
SAMEKEY
SCALE
SEARCH
SEARCHR
SECS
SECSTODATE
SECSTODAYS
SIGN
SIGNED
SIN
SIND
SINH
SIZE
SOURCEFILE
SOURCELINE
SQRT
SQRTF
STACKADDR
STORAGE
STRING
STRING pseudovariable
SUBSTR
SUBSTR pseudovariable
SUBTRACT
SUCC
SUM
SYSNULL
SYSTEM
TALLY
TAN
TAND
TANH
THREADID
TIME
TINY
TRANSLATE
TRIM
TRUNC
TYPE
TYPE pseudovariable
ULENGTH
ULENGTH8
ULENGTH16
UNALLOCATED
UNSIGNED
UNSPEC
UNSPEC pseudovariable
UPOS
UPPERCASE
USUBSTR
UVALID
UWIDTH
VALID
VALIDDATE
VARGLIST
VARGSIZE
VERIFY
VERIFYR
WCHARVAL
WEEKDAY
WHIGH
WIDECHAR
WLOW
XMLCHAR
Y4DATE
Y4JULIAN
Y4YEAR
Type Functions
Invoking type functions
Specifying arguments for type functions
Brief descriptions of type functions
BIND
CAST
FIRST
LAST
NEW
RESPEC
SIZE
Preprocessor Facilities
Preprocessor Options
Preprocessor Scan
Preprocessor Variables and Data Elements
Preprocessor References and Expressions
Scope of Preprocessor Names
Preprocessor Procedures
Preprocessor Built-In Functions
Preprocessor Statements
Preprocessor Examples
Appendix. Limits
Notices
Trademarks
Glossary
Index
Terms of use
|
Feedback
This information center is powered by Eclipse technology. (http://www.eclipse.org)