This lesson is locked
A short preview is available. Purchase once for lifetime access.
Beginner Β· 9:00
Variables, Constants, and Named Indicators
Every value a program touches is either expected to change, required never to change, or a two-state condition that drives a decision. This lesson covers the declaration tool for each β DCL-S variables, DCL-C named constants, and IND named indicators β and the scope and storage-duration rulesβ¦
What you'll be able to do
- 1Declare variables using DCL-S with appropriate scope, storage duration, and initialization for a given business requirement.
- 2Declare named constants using DCL-C and identify scenarios where a constant is the correct choice over a variable.
- 3Distinguish global variable scope from local (procedure-level) scope, and explain the effect of the STATIC keyword on local variable persistence.
- 4Declare named indicator variables and apply them to control flow in place of legacy numbered *INxx indicators.
- 5Read a block of free-format code and correctly identify which declarations are variables, which are constants, and which are named indicators, along with their intended purpose.
Create your account
Takes a few seconds β you'll be right back here after.