1. Home
  2. /
  3. Pli-mainframe
  4. /
  5. PL/I Variable Assignment

PL/I Variable Assignment - Pli-mainframe Typing CST Test

Loading…

PL/I Variable Assignment — Pli-mainframe Code

Assign values to variables and display the result.

ASSIGN-VARS: PROCEDURE;
	DECLARE A FIXED BINARY(31);
	DECLARE B FIXED BINARY(31);
	A = 10;
	B = 20;
	PUT SKIP LIST('A + B = ', A + B);
END ASSIGN-VARS;

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.

More Pli-mainframe Typing Exercises

PL/I Simple DisplayPL/I IF-ELSE ExamplePL/I DO Loop ExamplePL/I Array ProcessingPL/I String ConcatenationPL/I File Write ExamplePL/I Substring ExamplePL/I Conditional AssignmentPL/I Multi-dimensional Array

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher