Previous Topic: To Control the ACL/E Program's ExecutionNext Topic: To Issue Commands and Use Services


To Perform Calculations and Logical Operations

Action

Command

Operands

Set the value of an accumulator or a variable.

SET

{accumulator,value} {variable, value}

Add an accumulator or an integer to an accumulator.

ADD

{accumulator,accumulator} {accumulator,integer}

Subtract an accumulator or an integer from an accumulator.

SUB

{accumulator,accumulator} {accumulator,integer}

Compare an accumulator or a string with an accumulator, an integer, or a string, and set a condition code.

COMPARE

{accumulator,accumulator} {accumulator,n} {accumulator,string} {string,accumulator} {string,n} {string,string}

Search a string for another string and set a condition code.

SCAN

{string1,string2}