Appendix A
Alphabetic Summary of Keywords
Table A.1, “PL/I Keywords” summarizes all of the keywords. This alphabetic summary includes both the options for the ENVIRONMENT attribute and the options for I/O statements.
Some keywords are valid in one dialect but not others, or is used differently in different dialects. This is indicated, where appropriate, by the name of the dialect in parentheses after the explanation in the Use column.
Table A.1. PL/I Keywords
| Keyword | Abbreviation | Use |
|---|---|---|
| A | Format item | |
| ABS | Preprocessor built-in function, Built-in function | |
| ACOS | Built-in function | |
| %ACTIVATE | Preprocessor statement | |
| ADD | Built-in function | |
| ADDR | Built-in function | |
| ALIGNED | Attribute | |
| ALL | Built-in function (ibm dialect only), Stream I/O option, accepted but ignored (ibm dialect only) | |
| ALLOCATE | ALLOC | Statement |
| ALLOCATION | ALLOCN | Built-in function |
| ANY | Attribute, Built-in function (ibm dialect only) | |
| ANYCONDITION | Condition name | |
| APPEND | Environment option | |
| AREA | Data attribute, Condition name | |
| ASIN | Built-in function | |
| ATAN | Built-in function | |
| ATAND | Built-in function | |
| ATANH | Built-in function | |
| ATTENTION | ATTN | Condition |
| AUTOMATIC | AUTO | Attribute |
| B | Format item | |
| B1 | Format item | |
| B2 | Format item | |
| B3 | Format item | |
| B4 | Format item | |
| BACKUP_DATE | Environment option | |
| BASED | Attribute | |
| BATCH | Environment option | |
| BEGIN | Statement | |
| BINARY | BIN | Data attribute, Built-in function |
| BIT | Data attribute, Built-in function | |
| BLKSIZE | Environment option (ibm dialect only) | |
| BLOCK_BOUNDARY_ FORMAT | Environment option | |
| BLOCK_IO | Environment option | |
| BLOCK_SIZE | Environment option | |
| BOOL | Built-in function | |
| BUFFERED | BUF | Attribute, Option of OPEN statement (ibm dialect only) |
| BUCKET_SIZE | Environment option | |
| BUILTIN | Attribute | |
| BY | DO option | |
| BYTE | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| BYTESIZE | Built-in function (dec and ansi dialects only) | |
| C | Option to entry statement. | |
| CALL | Statement | |
| CANCEL_CONTROL_O | PUT OPTIONS option | |
| CARRIAGE_RETURN_ FORMAT | Environment option | |
| CEIL | Built-in function | |
| CHARACTER | CHAR | Data attribute, Built-in function |
| CHECK | Statement, Condition prefix (ibm) | |
| CLOSE | Statement | |
| COLLATE | Built-in function | |
| COLUMN | COL | Format item |
| CONDITION | COND | Attribute, Condition name |
| CONSECUTIVE | Environment option (ibm dialect only) | |
| CONTIGUOUS | Environment option | |
| CONTIGUOUS_BEST_TRY | Environment option | |
| CONTROLLED | CTL | Attribute |
| CONVERSION | CONV | Condition name |
| COPY | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| COS | Built-in function | |
| COSD | Built-in function | |
| COSH | Built-in function | |
| CREATION_DATE | Environment option | |
| CURRENT_POSITION | Environment option | |
| CURRENTSTORAGE | CSTG | Built-in function (ibm dialect only) |
| DATE | Preprocessor built-in function, Built-in function | |
| DATETIME | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| %DEACTIVATE | Preprocessor statement | |
| DECIMAL | DEC | Data attribute, Built-in function |
| %DECLARE | %DCL | Preprocessor statement |
| DECLARE | DCL | Statement |
| DECODE | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| DEFAULT_FILE_NAME | Environment option | |
| DEFERRED_WRITE | Environment option | |
| DEFINED | DEF | Attribute |
| DELETE | Statement, Environment option | |
| DIMENSION | DIM | Attribute, Built-in function |
| DIRECT | File attribute, OPEN option | |
| DIVIDE | Built-in function | |
| %DO | Preprocessor statement | |
| DO | Statement, GET and PUT I/O specifier | |
| E | Format item | |
| EDIT | GET option, PUT option | |
| %ELSE | Keyword of the %IF statement | |
| ELSE | Keyword of the IF statement | |
| EMPTY | Built-in function | |
| ENCODE | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| %END | Preprocessor statement | |
| END | Statement | |
| ENDFILE | Condition name | |
| ENDPAGE | Condition name | |
| ENTRY | Statement, Attribute | |
| ENVIRONMENT | ENV | File attribute, OPEN option, CLOSE option |
| ERF | Built-in function (ibm dialect only) | |
| ERFC | Built-in function (ibm dialect only) | |
| %ERROR | Preprocessor statement | |
| ERROR | Condition name, Preprocessor built-in function | |
| EVERY | Built-in function (dec and ansi dialects only) | |
| EXP | Built-in function | |
| EXPIRATION_DATE | Environment option | |
| EXTENSION_SIZE | Environment option | |
| EXTERNAL | EXT | Attribute |
| FAST_DELETE | DELETE OPTIONS option | |
| %FATAL | Preprocessor statement | |
| FILE | Attribute, Option of the GET, PUT, READ, WRITE, DELETE, REWRITE, OPEN, and CLOSE statements | |
| FILE_ID | Environment option | |
| FILE_ID_TO | Environment option | |
| FILE_SIZE | Environment option | |
| FINISH | Condition name | |
| FIXED | Data attribute, Built-in function | |
| FIXEDOVERFLOW | FOFL | Condition name |
| FIXED_CONTROL_FROM | REWRITE OPTIONS option, WRITE OPTIONS option | |
| FIXED_CONTROL_SIZE | Environment option | |
| FIXED_CONTROL_SIZE_ TO | Environment option | |
| FIXED_CONTROL_TO | READ OPTIONS option | |
| FIXED_LENGTH_RECORDS | Environment option | |
| FLOAT | Data attribute, Built-in function | |
| FLOOR | Built-in function | |
| FLOW | Stream I/O option, accepted but ignored (ibm dialect only) | |
| FLUSH | Built-in subroutine (dec and ansi dialects only) | |
| FORMAT | Statement | |
| FREE | Statement | |
| FROM | WRITE option, REWRITE option | |
| GET | Statement | |
| GLOBALDEF | Attribute | |
| GLOBALREF | Attribute | |
| %GOTO | Preprocessor statement | |
| GOTO | GO TO | Statement |
| GROUP_PROTECTION | Environment option | |
| HBOUND | Built-in function | |
| HIGH | Built-in function | |
| IDENT | PROCEDURE OPTIONS option | |
| %IF | Preprocessor statement | |
| IF | Statement | |
| IGNORE | Option to the READ statement (ibm dialect only) | |
| IGNORE_LINE_MARKS | Environment option | |
| IN | ALLOCATE option, FREE option | |
| %INCLUDE | Preprocessor statement | |
| INDEX | Preprocessor built-in function, Built-in function | |
| INDEXED | Environment option | |
| INDEX_NUMBER | DELETE OPTIONS option, READ OPTIONS option, REWRITE OPTIONS option, Environment option | |
| %INFORM | Preprocessor statement | |
| INFORM | Preprocessor built-in function (dec and ansi dialects only) | |
| INITIAL | INIT | Attribute |
| INITIAL_FILL | Environment option | |
| INPUT | File attribute, OPEN option | |
| INT | Built-in function (dec and ansi dialects only), Pseudovariable | |
| INTERNAL | INT | Attribute |
| INTO | READ option | |
| KEY | Condition name, READ option, DELETE option, REWRITE option | |
| KEYED | File attribute, OPEN option | |
| KEYFROM | WRITE option | |
| KEYTO | READ option | |
| LABEL | Attribute | |
| LBOUND | Built-in function | |
| LEAVE | Statement | |
| LENGTH | Preprocessor built-in function, Built-in function | |
| LIKE | Attribute | |
| LINE | PUT option, Preprocessor built-in function, Format item | |
| LINENO | Built-in function | |
| LINESIZE | OPEN option | |
| LIST | Attribute, GET option, PUT option | |
| LOCATE | Statement (ibm dialect only) | |
| LOCK_ON_READ | READ OPTIONS option | |
| LOCK_ON_WRITE | READ OPTIONS option | |
| LOG | Built-in function | |
| LOG10 | Built-in function | |
| LOG2 | Built-in function | |
| LOW | Built-in function | |
| LTRIM | Preprocessor built-in function, Built-in function | |
| MAIN | PROCEDURE OPTIONS option | |
| MANUAL_UNLOCKING | READ OPTIONS option | |
| MATCH_GREATER | DELETE OPTIONS option, READ OPTIONS option, REWRITE OPTIONS option | |
| MATCH_GREATER_EQUAL | DELETE OPTIONS option, READ OPTIONS option, REWRITE OPTIONS option | |
| MATCH_NEXT | DELETE OPTIONS option, READ OPTIONS option, REWRITE OPTIONS option | |
| MATCH_NEXT_EQUAL | DELETE OPTIONS option, READ OPTIONS option, REWRITE OPTIONS option | |
| MAX | Preprocessor built-in function, Built-in function | |
| MAXIMUM_RECORD_ NUMBER | Environment option | |
| MAXIMUM_RECORD_ SIZE | Environment option | |
| MAXLENGTH | Built-in function (dec and ansi dialects only) | |
| MEMBER | Attribute | |
| MIN | Preprocessor built-in function, Built-in function | |
| MOD | Preprocessor built-in function, Built-in function | |
| MULTIBLOCK_COUNT | Environment option | |
| MULTIBUFFER_COUNT | Environment option | |
| MULTIPLY | Built-in function | |
| NAME | Condition (ibm dialect only), Condition prefix (ibm dialect only) | |
| NOCHECK | Condition prefix (ibm dialect only) | |
| NOCONVERSION | NOCONV | Condition prefix (ibm dialect only) |
| NOFIXEDOVERFLOW | NOFOFL | Condition prefix (ibm dialect only) |
| NOLOCK | READ OPTIONS option | |
| NONEXISTENT_RECORD | READ OPTIONS option | |
| NONRECURSIVE | PROCEDURE option, ENTRY option | |
| NONVARYING | NONVAR | Attribute |
| NOOVERFLOW | Condition prefix (ibm dialect only) | |
| NOSIZE | Condition prefix (ibm dialect only) | |
| NOSTRINGRANGE | NOSTRG | Condition prefix (ibm dialect only) |
| NOSTRINGSIZE | NOSTRZ | Condition prefix (ibm dialect only) |
| NOSUBSCRIPTRANGE | NOSUBRG | Condition prefix (ibm dialect only) |
| NOZERODIVIDE | NOZDIV | Condition prefix (ibm dialect only) |
| NORESCAN | Option of the %ACTIVATE statement | |
| NO_ECHO | GET OPTIONS option | |
| NO_FILTER | GET OPTIONS option | |
| NO_SHARE | Environment option | |
| NULL | Built-in function | |
| OFFSET | Data attribute | |
| ON | Statement | |
| ONCHAR | Built-in function, Pseudovariable | |
| ONCODE | Built-in function | |
| ONFILE | Built-in function | |
| ONKEY | Built-in function | |
| ONLOC | Built-in function (ibm dialect only) | |
| ONSOURCE | Built-in function, Pseudovariable | |
| OPEN | Statement | |
| OPTIONS | File attribute, Option of the GET, PUT, READ, WRITE, DELETE, REWRITE, and PROCEDURE statements, and DECLARE variable name CHARACTER statement | |
| OPTIONAL | Attribute (dec and ansi dialects only) | |
| OUTPUT | File attribute, OPEN option | |
| OVERFLOW | OFL | Condition name, Condition prefix (ibm) |
| OWNER_GROUP | Environment option | |
| OWNER_ID | Environment option | |
| OWNER_MEMBER | Environment option | |
| OWNER_PROTECTION | Environment option | |
| P | Format item | |
| %PAGE | Preprocessor statement | |
| PAGE | PUT option, Format item | |
| PAGENO | Built-in function, Pseudovariable | |
| PAGESIZE | OPEN option | |
| PARAMETER | PARM | Attribute |
| PICTURE | PIC | Data attribute |
| PLIRETC | Built-in subroutine (ibm dialect only) | |
| PLIRETV | Built-in function (ibm dialect only) | |
| PLISRTA | Built-in subroutine (ibm dialect only) | |
| PLISRTB | Built-in subroutine (ibm dialect only) | |
| PLISRTC | Built-in subroutine (ibm dialect only) | |
| PLISRTD | Built-in subroutine (ibm dialect only) | |
| POINTER | PTR | Data attribute, Built-in function |
| POSINT | Built-in function, Pseudovariable | |
| POSITION | POS | Attribute |
| PRECISION | PREC | Attribute, Built-in function (ibm dialect only) |
| File attribute, OPEN option | ||
| PRINTER_FORMAT | Environment option | |
| %PROCEDURE | %PROC | Preprocessor statement |
| PROCEDURE | PROC | Statement |
| *PROCESS | Statement (accepted but ignored) | |
| PROD | Built-in function | |
| PROMPT | GET OPTIONS option | |
| PURGE_TYPE_AHEAD | GET OPTIONS option | |
| PUT | Statement | |
| R | Format item | |
| RANK | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| READ | Statement | |
| READONLY | Attribute | |
| READ_AHEAD | Environment option | |
| READ_CHECK | Environment option | |
| READ_REGARDLESS | READ OPTIONS option | |
| RECORD | File attribute, OPEN option, Condition (ibm), Condition prefix (ibm dialect only) | |
| RECORD_ID | DELETE OPTIONS option, READ OPTIONS option, REWRITE OPTIONS option | |
| RECORD_ID_ACCESS | Environment option | |
| RECORD_ID_TO | READ OPTIONS option, REWRITE OPTIONS option, WRITE OPTIONS option | |
| RECSIZE | Environment option (ibm dialect only) | |
| RECURSIVE | PROCEDURE option, ENTRY option | |
| REFER | Attribute | |
| REFERENCE | Attribute (accepted but ignored) | |
| REGIONAL | Environment option (ibm dialect only) Accepted but ignored. | |
| REPEAT | DO option, Built-in function (ibm dialect only) | |
| %REPLACE | Preprocessor statement | |
| RESCAN | Option of the %ACTIVATE statement | |
| RESIGNAL | Built-in subroutine (dec and ansi dialects only) | |
| RETRIEVAL_POINTERS | Environment option | |
| %RETURN | Preprocessor statement | |
| RETURN | Statement | |
| RETURNS | Entry attribute, PROCEDURE option, ENTRY option | |
| REVERSE | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| REVERT | Statement | |
| REVISION_DATE | Environment option | |
| REWIND | Built-in subroutine (dec and ansi dialects only) | |
| REWIND_ON_CLOSE | Environment option | |
| REWIND_ON_OPEN | Environment option | |
| REWRITE | Statement | |
| ROUND | Built-in function | |
| SCALARVARYING | Environment option | |
| SEARCH | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| SELECT | Statement | |
| SEQUENTIAL | SEQL | File attribute, OPEN option |
| SET | READ option, ALLOCATE option | |
| SHARED_READ | Environment option | |
| SHARED_WRITE | Environment option | |
| SIGN | Preprocessor built-in function, Built-in function | |
| SIGNAL | Statement | |
| SIN | Built-in function | |
| SIND | Built-in function | |
| SINH | Built-in function | |
| SIZE | Built-in function (dec and ansi dialects only), Condition, Condition prefix (ibm dialect only) | |
| SKIP | GET option, PUT option, Format item | |
| SNAP | Option of PUT statement, accepted but ignored (ibm dialect only) | |
| SOME | Built-in function (dec and ansi dialects only) | |
| SPOOL | Environment option | |
| SQRT | Built-in function | |
| STATEMENT | Option of the %PROCEDURE statement | |
| STATIC | Attribute | |
| STOP | Statement | |
| STORAGE | Condition name, Condition prefix (ibm dialect only), Built-in function (ibm dialect only) | |
| STREAM | File attribute, OPEN option | |
| STRING | GET option, PUT option, Built-in function, Pseudovariable | |
| STRINGRANGE | STRG | Condition, Condition prefix (ibm dialect only) |
| STRINGSIZE | STRZ | Condition (ibm dialect only), Condition prefix (ibm dialect only) |
| STRUCTURE | Attribute | |
| SUBSCRIPTRANGE | SUBRG | Condition name, Condition prefix (ibm dialect only) |
| SUBSTR | Preprocessor built-in function, Built-in function, Pseudovariable | |
| SUBTRACT | Built-in function (dec and ansi dialects only) | |
| SUM | Built-in function | |
| SUPERSEDE | Environment option | |
| SYSIN | Default input file | |
| SYSPRINT | Default output file | |
| SYSTEM | ON statement option | |
| SYSTEM_PROTECTION | Environment option | |
| TAB | Format item | |
| TAN | Built-in function | |
| TAND | Built-in function | |
| TANH | Built-in function | |
| TEMPORARY | Environment option | |
| %THEN | Keyword of the %IF statement | |
| THEN | Keyword of the IF statement | |
| TIME | Built-in function | |
| TIMEOUT_PERIOD | READ OPTIONS option | |
| TITLE | OPEN option | |
| TO | DO option | |
| TRANSLATE | Preprocessor built-in function, Built-in function | |
| TRANSMIT | Condition (ibm dialect only), Condition prefix (ibm dialect only) | |
| TRIM | Preprocessor built-in function, Built-in function (dec and ansi dialects only) | |
| TRUNC | Built-in function | |
| TRUNCATE | Attribute, Environment option | |
| UNALIGNED | UNAL | Attribute |
| UNBUFFERED | UNBUF | Attribute, Option of OPEN statement (IBM ONLY) |
| UNDEFINEDFILE | UNDF | Condition name, Condition prefix (ibm dialect only) |
| UNDERFLOW | Condition name, Condition prefix (ibm dialect only) | |
| UNION | Attribute | |
| UNLOCK | Statement, accepted but ignored (ibm dialect only) | |
| UNSPEC | Built-in function, Pseudovariable | |
| UNTIL | DO option | |
| UPDATE | File attribute, OPEN option | |
| USER_OPEN | Environment option | |
| VALUE | VAL | Attribute |
| VARIABLE | Attribute, OPTIONS option | |
| VARIANT | Preprocessor built-in function (dec and ansi dialects only) | |
| VARYING | VAR | Attribute |
| VAXCONDITION | Condition name, Condition prefix (ibm dialect only) | |
| VERIFY | Preprocessor built-in function, Built-in function | |
| WAIT_FOR_RECORD | READ OPTIONS option | |
| %WARN | Preprocessor statement | |
| WARN | Preprocessor built-in function (dec and ansi dialects only) | |
| WHEN | Keyword of the SELECT statement | |
| WHILE | DO option | |
| WORLD_PROTECTION | Environment option | |
| WRITE | Statement | |
| WRITE_BEHIND | Environment option | |
| WRITE_CHECK | Environment option | |
| X | Format item | |
| ZERODIVIDE | ZDIV | Condition name, Condition prefix (ibm) |