PRL control statement verbs
The first word of every PRL statement is a verb or a condition (IF, FOR, WHERE) with a verb in the expression. This chapter describes PRL verbs in alphabetical order. Each verb is discussed in a separate section that includes a description of the verb, its uses, syntax, and a coding example.
PRL verb | Description | See this topic |
---|---|---|
COMPUTE | calculates a mathematical expression | |
DEFINE | assigns the data characteristics of a variable | |
DETAIL | creates a tabular summary at each control break | |
DIAGNOSE | creates a system snap dump and diagnostic report | |
END | terminates the execution of a PRL program | |
FOR and NEXT | repeats a series of instructions in a loop | |
GOTO | branches to another location of a PRL program identified by a label | |
IF and THEN | tests conditions and makes a program branch according to the outcome | |
LET | assigns a length to variable 1 from the length of variable 2 | |
ORDER BY | sorts data | |
| prints a report | |
REPORT | creates a report from the data processed by PRL statements | |
SCAN | reads a variable and performs an editing function on the data | |
SELECT | selects records from CMRDETL, CTGDETL, and CMRSTATS data sets | |
SET | assigns a value to a variable | |
SUMMARY | creates a tabular summary of the first preceding variable in the USING statement | |
USING | designates column headings and the data shown in a report based upon record fields | |
WHERE | qualifies record selection based on whether a condition is met |
Comments
Log in or register to comment.