PL/I Substring Example - Pli-mainframe Typing CST Test
Loading…
PL/I Substring Example — Pli-mainframe Code
Extract a substring from a string variable.
SUBSTRING-EX: PROCEDURE;
DECLARE STR CHAR(20) INIT('PL/I Programming');
DECLARE SUB CHAR(10);
SUB = SUBSTR(STR, 1, 3);
PUT SKIP LIST('Substring: ', SUB);
END SUBSTRING-EX;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.