Previous Topic: Procedure Naming Convention

Next Topic: Command Coding Conventions

PL/1 Standard Indicators

The indicators, such as 01-99, should be used as little as possible, as they are difficult to reconcile with structured programming. The number of indicators available is fixed, so it is best to reserve their use for the places where you have to use them. Ideally, indicators should only be used to communicate with external files.

Try to give the same meaning to indicator usage throughout a system and across all HLLs. This makes it easier to understand programs. Use specific indicators for functions that are common to many programs, such as command keys, and use a different range of indicators for functions, which are specific to a particular program, or part of a program. Indicator usage should adhere to the following convention:

Usage of standard indicators in device files should be documented in the device files using the DDS INDTXT, SETOF, CAnn or CFnn keywords—it should not need to be repeated in the PL/1 program source.