O'Reilly logo

Complete CL: The Definitive Control Language Programming Guide, Fourth Edition by Ron Hawkins, Doug Pence, Ted Holt, Kevin Forsythe, Ernie Malaga

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Constants and Variables

Like other programming languages, CL can manipulate data in either constant or variable form. This chapter explains these two forms as they relate to CL programming. Variables, unlike constants, are allowed to change values. Variables have a name and are stored in memory for the duration of the procedure.

If your background involves RPG, you might already refer to variables as “fields” (even though that term is inappropriate). Like constants, variables have different types: character, decimal, integer, and logical. Because hexadecimal values are actually character strings, hexadecimal values are stored in character variables.

What Is a Constant?

A constant, also known as a literal, is a value that does not and cannot ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required