PL/I Todo List - Pli Typing CST Test
Loading…
PL/I Todo List — Pli Code
Maintains a simple todo list with add and remove functionality.
DECLARE todos CHAR(20) DIM(10);
DECLARE count FIXED BINARY(31) INITIAL(0);
ADD: PROCEDURE(task);
todos(count) = task;
count = count + 1;
PUT SKIP LIST('Todos count: ', count);
END ADD;
REMOVE: PROCEDURE(idx);
DO i = idx TO count-2;
todos(i) = todos(i+1);
END;
count = count - 1;
END REMOVE;
/* Simulate actions */
CALL ADD('Buy milk');
CALL ADD('Write PL/I code');
CALL REMOVE(1);Pli Language Guide
PLI (Programming Language One) is a procedural, compiled language designed for business and systems programming, particularly for large-scale data processing and legacy IBM mainframe environments.
Primary Use Cases
- ▸Large-scale batch processing
- ▸Business and financial systems
- ▸Mainframe application maintenance
- ▸Data processing for enterprises
- ▸Legacy system integration and updates
Notable Features
- ▸Structured programming constructs
- ▸Strong support for record and array data types
- ▸Compiled for IBM mainframes
- ▸Integrated input/output for batch processing
- ▸Efficient memory and file handling
Origin & Creator
Developed by IBM in the 1960s, primarily as a high-level language for business and systems applications on mainframe computers.
Industrial Note
PLI remains in use in legacy IBM mainframe environments for maintaining mission-critical financial and administrative systems.