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 section 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

PRINT

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

This section also contains the following topics:

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*