Previous Topic: Sample Reports for CA JARS DSA Option

Next Topic: Syntax


Control Statements

CA JARS Wizard uses the following control statements. With the exception of a few instances, the exact sequence the control statements are specified in is not important. The instances where it is important are explicitly identified during the discussion of the specific control statements in this chapter. The general rule is to place the control statements that establish an item's identity, such as the INPUT or DEFINE statements, before the item is referenced.

Statement

Function

BREAK

Organizes records into control break groups and calculates group totals for numeric fields.

CALENDAR

Produces a report in monthly calendar format.

CALL

Passes control to a subroutine.

COMPUTE

Inserts arithmetic, assignment, and logical processing instructions into the run and transfers control to a statement other than the next sequential statement in the program.

COPY

Copies a set of one or more control statements or sequential files from the CA JARS Wizard source statement library and inserts them into the run request.

DECODE

Assigns a value to a data field based on the data contents of another field.

DEFINE

Establishes new work data fields and redefines or renames existing data fields.

EXCEPTION

Produces a listing of records meeting special selection criteria.

HEADING

Supplies from one to six lines of text to be printed at the top of each report page.

INPUT

Identifies the input data file or files for the run.

LIST

Specifies the data fields to include in a report print line.

OUTPUT

Specifies the output file to be created.

PARAMETER

Overrides some of automatic page formatting functions, and establishes other options for the run and for compilation output.

PLOT

Produces a report in graph form.

RANK

Produces a summary report with records listed in ascending or descending order of a selected data field.

REJECT

Specifies which input records to bypass.

SELECT

Specifies which input records to process.

SORT

Defines the sequence in which the input file is to be sorted for the run.

TITLE

Prints a special line of text over two or more adjacent data columns to highlight a relationship.

TITLE(V)

Provides a title for a column of vertical totals.

XTAB

Produces a cross-tabulation report.

*

An asterisk in position 1 designates a comment.

This section contains the following topics:

Syntax

BREAK Statement

CALENDAR Statement

CALL Statement

COMPUTE Statement

COPY Statement

DECODE Statement

DEFINE Statement

EXCEPTION Statement

HEADING Statement

INPUT Statement

LIST Statement

OUTPUT Statement

PARAMETER Statement

PLOT Statement

RANK Statement

REJECT Statement

SELECT Statement

SORT Statement

TITLE Statement

TITLE(V) Statement

XTAB Statement