PL/I IF-ELSE Example - Pli-mainframe Typing CST Test
Loading…
PL/I IF-ELSE Example — Pli-mainframe Code
Check if a number is positive or negative.
CHECK-NUMBER: PROCEDURE;
DECLARE NUM FIXED BINARY(31) INIT(-5);
IF NUM >= 0 THEN
PUT SKIP LIST('Number is positive.');
ELSE
PUT SKIP LIST('Number is negative.');
END CHECK-NUMBER;Pli-mainframe Language Guide
PLI (Programming Language One) Mainframe is a procedural programming language primarily used on IBM mainframe systems for business and administrative applications. It emphasizes structured, readable code for transaction processing, batch jobs, and legacy enterprise systems.
Primary Use Cases
- ▸Batch processing of financial transactions
- ▸Payroll and accounting applications
- ▸Report generation and data summarization
- ▸Legacy system maintenance and modernization
- ▸Integration with mainframe DB2, CICS, or IMS systems
Notable Features
- ▸Structured, readable procedural programming
- ▸Strong support for arrays, records, and tables
- ▸Mainframe I/O handling (sequential, indexed, VSAM files)
- ▸Integration with legacy databases like DB2
- ▸Compatibility with IBM batch and transaction processing environments
Origin & Creator
PLI was developed by IBM in the 1960s as a high-level, business-oriented programming language for mainframes, to simplify COBOL-style development with structured programming features.
Industrial Note
Crucial for organizations with legacy mainframe infrastructure, high-volume transaction processing, and systems requiring extreme reliability and uptime.