Previous Topic: Handling Dates in COBOL

Next Topic: Calculation Checks

COBOL Job Name/Operator ID

The user profile name and job name should appear on panels and reports. You should never ‘hard code’ the user profile name as a literal—always get it from the data structure.

Since this information is readily available from the PGMDS of an RPG III program, one technique is to call a standard RPG III subprogram to obtain information about the operator—user profile name, job name, job number.

You should place the program name in a variable. This facilitates renaming or copying the program.

The program data structure may be defined using an externally described file. This helps to standardize its use.