CL Programming Guide

Home › Learn IBM i › CL Programming Guide

Control Language (CL) is how IBM i programs talk to the operating system: submitting jobs, handling messages, and orchestrating batch work. This guide collects the CL material on AS400Decoded by task.

Start with the introductions, then focus on message handling, which is where most production CL bugs hide.

Getting Started with CL

Three introductions at increasing depth: what CL is, how RPG developers use it, and where ILE CL fits in a modern IBM i stack.

Messages and Error Handling

Message handling decides whether a CL program fails cleanly or silently. Start with the general IBM i message model, then the CL commands that act on it.

Jobs and Batch Automation

Submitting, scheduling, and controlling batch work from CL.

Data Areas and Data Queues

Small system objects that CL programs use to share values and pass data between jobs.

Planned Topics

These topics are on the writing plan for this guide:

  • CL program structure: PGM, DCL, and ENDPGM
  • CL variables, data types, and CHGVAR
  • Reading database files in CL with DCLF and RCVF

Browse the Archive

See every post filed in the CL Programming category, newest first.

Related Guides

Scroll to Top