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 4. Basic Operators and Functions

Chapter 3 covers the use of isolated constants and variables in a CL procedure. This chapter explains the various manipulations you can perform in CL to combine two or more constant or variable values.

The Chgvar Command

The Change Variable (CHGVAR) command is the primary means of assigning a new value to a variable. In this respect, CHGVAR is equivalent to the assignment statement found in other programming languages. Most programming languages use the equal sign (=) to this effect (Pascal uses the composite symbol := and RPG and COBOL use various verbs such as MOVE, COMPUTE, EVAL, and Z-ADD). The CHGVAR command has only two parameters, which are both mandatory:

  • VAR: The name of the variable being changed. ...

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