Subtract - Control Data Corporation 3300 Reference Manual

Computer systems usasi cobol/ master
Table of Contents

Advertisement

4.7.26
SUBTRACT
4-68
The SUBTRACT statement is used to subtract one, or the sum of two or
more, numeric data items from one or more items equal
to
the results.
Format 1:
SUBTRA CT {literal-1
} [
identifier-1
' {
literal-2
}]
identifier-2
. .. FROM identifier-m
[ROUNDED] , identifier-n [ROUNDED] ...
[; ON SIZE ERROR imperative-statement1
All literals or identifiers preceding the word FROM are added together and
this total is subtracted from identifier-m, identifer-n, ... The differences
are stored in the respective identifiers.
Format 2:
SUBTRACT {literal-1
} [
{literal-2
}]
FROM {literal-m
}
identifier-1
'
identifier-2
. .. - - - identifier-m
GWING
identifier-n [ROUNDED] [, identifier-o [ROUNDED)] ...
[; ON SIZE ERROR imperative-statement
1
All literals or identifiers preceding the word FROM are added together,
subtracted from literal-m or identifier-m, and the result stored as the new
value of identifier-n, identifier-o, ... .
Format 3:
(CORRESPONDING
I . _
. _.
. ______ . _
. __ .
_
SUBTRACT
i
CORR
f
identliler-l
It'HUM
Ident111er-~
[ROUNDED1 [; ON SIZE ERROR imperative-statement1
Data items in identifier-1 are subtracted from and stored into corresponding
data items in identifier-2.
Each identifier must refer to a numeric elementary item except in format 2,
where an identifier which appears to the right of the word
GWING
may refer
to a data item that contains editing symbols. Each literal must be a numeric
literal.
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