Language Reference
Total Page:16
File Type:pdf, Size:1020Kb
Enterprise PL/I for z/OS Version 5 Release 3 Language Reference IBM SC27-8940-02 Note Before using this information and the product it supports, be sure to read the general information under “Notices” on page 613. Third Edition (September 2019) This edition applies to Enterprise PL/I for z/OS Version 5 Release 3 (5655-PL5), and IBM Developer for z/OS PL/I for Windows (former Rational Developer for System z PL/I for Windows), Version 9.1, and to any subsequent releases of any of these products until otherwise indicated in new editions or technical newsletters. Make sure you are using the correct edition for the level of the product. Order publications through your IBM® representative or the IBM branch office serving your locality. Publications are not stocked at the address below. A form for readers' comments is provided at the back of this publication. If the form has been removed, address your comments to: IBM Corporation, Department H150/090 555 Bailey Ave. San Jose, CA, 95141-1099 United States of America When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Because IBM Enterprise PL/I for z/OS supports the continuous delivery (CD) model and publications are updated to document the features delivered under the CD model, it is a good idea to check for updates once every three months. © Copyright International Business Machines Corporation 1999, 2019. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Tables.............................................................................................................. xxiii Figures............................................................................................................ xxvii About this book.................................................................................................xxix Notation conventions used in this book..................................................................................................xxix Semantics................................................................................................................................................ xxxi Industry standards used.........................................................................................................................xxxii Summary of changes.............................................................................................................................. xxxii Enhancements in this release...........................................................................................................xxxii Enhancements from V5R2................................................................................................................ xxxv Enhancements from V5R1.............................................................................................................. xxxvii Enhancements from V4R5............................................................................................................. xxxviii Enhancements from V4R4............................................................................................................... xxxix Enhancements from V4R3............................................................................................................... xxxix Enhancements from V4R2.....................................................................................................................xl Enhancements from V4R1.....................................................................................................................xl Enhancements from V3R9.....................................................................................................................xl Enhancements from V3R8....................................................................................................................xli Enhancements from V3R7....................................................................................................................xli Enhancements from V3R6...................................................................................................................xlii Enhancements from V3R5...................................................................................................................xlii Enhancements from V3R4...................................................................................................................xlii Enhancements from V3R3..................................................................................................................xliii Enhancements from V3R2..................................................................................................................xliii Enhancements from V3R1..................................................................................................................xliii How to send your comments.................................................................................................................... xlv Accessibility.............................................................................................................................................. xlvi Chapter 1. Program elements................................................................................ 1 Single-byte character set.............................................................................................................................1 Decimal digits......................................................................................................................................... 3 Binary digits............................................................................................................................................ 3 Hexadecimal digits................................................................................................................................. 3 Special characters.................................................................................................................................. 3 Composite symbols................................................................................................................................ 4 Case sensitivity.......................................................................................................................................5 Statement elements for SBCS................................................................................................................5 Statements...................................................................................................................................................8 Simple statements............................................................................................................................... 10 Compound statements.........................................................................................................................10 Groups........................................................................................................................................................10 Double-byte character set.........................................................................................................................11 DBCS identifiers....................................................................................................................................11 Statement elements for DBCS............................................................................................................. 12 DBCS continuation rules...................................................................................................................... 13 Chapter 2. Data elements.................................................................................... 15 Data items.................................................................................................................................................. 15 iii Variables............................................................................................................................................... 15 Constants..............................................................................................................................................16 Using quotation marks......................................................................................................................... 16 Punctuating constants......................................................................................................................... 16 Data types and attributes.......................................................................................................................... 17 Data attributes......................................................................................................................................18 Nondata attributes............................................................................................................................... 18 Computational data types and attributes................................................................................................. 22 Coded arithmetic data and attributes..................................................................................................22 String data and attributes.................................................................................................................... 29 Date attribute......................................................................................................................................