The MULTIPLY statement multiplies numeric items and sets the values of data items equal to the results.
___ Format 1 ___________________________________________________________ | | | <___________________________ | | >>__MULTIPLY__ _identifier-1_ __BY____identifier-2__ _________ _|____> | | |_literal-1____| |_ROUNDED_| | | | | >__ ____________________________________________ ____________________> | | |_ ____ __SIZE ERROR__imperative-statement-1_| | | |_ON_| | | | | >__ _________________________________________________ _______________> | | |_NOT__ ____ __SIZE ERROR__imperative-statement-2_| | | |_ON_| | | | | >__ ______________ _________________________________________________>< | | |_END-MULTIPLY_| | | | |________________________________________________________________________|In Format 1, the value of identifier-1 or literal-1 is multiplied by the value of identifier-2; the product is then placed in identifier-2. For each successive occurrence of identifier-2, the multiplication takes place in the left-to-right order in which identifier-2 is specified.
___ Format 2 ___________________________________________________________ | | | >>__MULTIPLY__ _identifier-1_ __BY__ _identifier-2_ _________________> | | |_literal-1____| |_literal-2____| | | | | <___________________________ | | >__GIVING____identifier-3__ _________ _|_____________________________> | | |_ROUNDED_| | | | | >__ ____________________________________________ ____________________> | | |_ ____ __SIZE ERROR__imperative-statement-1_| | | |_ON_| | | | | >__ _________________________________________________ _______________> | | |_NOT__ ____ __SIZE ERROR__imperative-statement-2_| | | |_ON_| | | | | >__ ______________ _________________________________________________>< | | |_END-MULTIPLY_| | | | |________________________________________________________________________|In Format 2, the value of identifier-1 or literal-1 is multiplied by the value of identifier-2 or literal-2. The product is then stored in the data item(s) referenced by identifier-3.
For all Formats:
The composite of operands must not contain more than 18 digits.
Subtopics:
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.