Source-Sum-Value - Control Data Corporation 3300 Reference Manual

Computer systems usasi cobol/ master
Table of Contents

Advertisement

5.3.9
SOURCE - SUM - VALUE
The SOURCE, SUM, or VALUE clauses define the purpose of an elementary
item within the report group; only one clause is included in the description
of anyone item, and it must only appear at the elementary level.
5-20
{
; SOURCE IS identifier-1
}
; SUM identifier-2 [, identifier-3] ... [UPON data-name-1]
; VALUE IS literal-1
The identifiers must identify an item in the File, Working-storage, or
Common -storage Sections; a sum counter in the Report Section; or one of
the special registers: SYSTEM-DATE, or SYSTEM-TIME. The literal in
the VALUE clause may be numeric, non-numeric, or a figurative constant.
Data-name-1 is the name of a detail report group; it may be qualified by
report name if the name is used in more than one report description. SOURCE
and SUM are described below; VALUE is described in chapter 3.
The SOURCE clause indicates a data item used as a source for the report
item.
PICTURE must also be specified in the entry for the report item. The
value of identifier-1 at object time is effectively moved to the report item and
presented according to the PICTURE speCified in the report item description.
The fixed data items LINE-COUNTER or PAGE-COUNTER may be specified
as identifier-I; in this case the current value of the line counter or the page
counter is the source.
Examples:
1.
01
DETAIL-ITEM TYPE DETAIL LINE PLUS
1.
02
DEPT PIC X COLUMN 70 SOURCE IS DEPT-NO.
In this example, DEPT-NO is the name of a data item in the File, \Vorking-
storage, or Common-storage Section.
2.
01
TYPE IS PAGE HEADING LINE PLUS 02.
02
COLUMN 110 PIC X(4) VALUE IS "PAGE".
02
COLUMN 115 PIC 999 SOURCE IS PAGE-COUNTER.
60229400

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 3300 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

3500

Table of Contents