CL Programming
In its simplest form, the Declare CL Variable (DCL) command has the
following parameters:

When you use a DCL command, you must use the following rules:
- The CL variable name must begin with an ampersand (&) followed by as
many as 10 characters. The first character following the & must be
alphabetic and the remaining characters alphanumeric. For example,
&PART
- The CL variable value must be one of the following:
- A character string as long as 5000 characters.
- A packed decimal value totaling up to 15 digits with as many as 9 decimal
positions.
- A logical value '0' or '1', where '0' can
mean off, false, or no, and '1' can mean on, true, or yes. A
logical variable must be either '0' or '1'.
- If you do not specify an initial value, the following is assumed:
- 0 for decimal variables
- Blanks for character variables
- '0' for logical variables.
For decimal and character types, if you specify an initial value and do not
specify the LEN parameter, the default length is the same as the length of the
initial value. For type *CHAR, if you do not specify the LEN parameter,
the string can be as long as 5000.
- Declare the parameters as variables in the program DCL statements.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.