![]() |
PL/I Introductory Programming
| Duration: 5 days |
| Participants: Experienced programmers with a knowledge of at least one high level language, such as COBOL or C. Entry level programmers can also attend but this course does not teach programming logic or concepts. |
|
Objectives:
Upon successful completion of this course you will be able to:
- Compile, test, and modify PL/I programs. - Understand PL/I data formats and organization. - Appreciate the flexibility of operational expressions and builtin functions. - Use the control statements to create structured PL/I programs. - Perform I/O operations using Record I/O and basic Stream I/O. - Modularize program tasks as subroutines. |
| Overview: This course introduces the programmer to the basic features of PL/I. The lecture material covers both concepts and syntax for each topic with consideration for its practical application. |
| Prerequisites: Knowledge of the Operating System; TSO or CMS; and on-line source editor. |
| Format: Lecture and discussion with class and hands-on exercises. |
|
Topic Outline:
- Program Components Character Set Identifiers Statement Types Comments Beginning and Ending a Program - The DECLARE Statement Syntax and format INITIAL attribute Default rules - Scalar Identifiers Use of constants Numeric and string data Fixed point decimal and binary Character and bit string Pictures Assignment statement rules - Structures Components and syntax Accessing structure data Relative level Qualification of names The LIKE attribute Assignment by position and by name - Arrays Dimension attribute Accessing arrays and array elements Array subscript format Assignment rules - Arrays of Structures Concept and syntax Accessing one or more elements - Expression Evaluation Arithmetic Operations Concatenation Comparison Logical Operations Priority of Operations - Control Statements GOTO IF/THEN/ELSE Syntax and flow of control Nested IF statements Logical unit syntax SELECT/WHEN/OTHERWISE Syntax and formats Flow of control DO Statement Non-iterative TO/BY WHILE UNTIL END statement Handling array elements Table searching LEAVE Statement CALL Statement PROCEDURE syntax Flow of control - File Processing File attributes OPEN and CLOSE statements PUT DATA and PUT LIST Record I/O Transmission Statements Move Mode Interrupts for I/O Operations Structured Programming File Input Producing reports using the WRITE statement - Builtin Functions and Pseudovariables Concept and syntax BUILTIN attribute Where and how used Examples of: SUBSTR, STRING, INDEX, VERIFY, DATE, TIME, LENGTH, ADDR, SUM, ROUND - Compiler Options |
|
|