Question: Take a look at the example below. What is 1 BY 1 doing to the variable SUB? In COBOL MOVE ZERO TO TOT-AMT. PERFORM 2000-CALCULATE

Take a look at the example below. What is 1 BY 1 doing to the variable SUB? In COBOL

MOVE ZERO TO TOT-AMT. PERFORM 2000-CALCULATE VARYING SUB FROM 1 BY 1 UNTIL SUB > 6. 2000-CALCULATE. COMPUTE TOT-AMT = TOT-AMT + BIMONTH-END (SUB).

A. Decrementing 1 from SUB until > than 6.

B. Multiplying by 1 to SUB until > than 6.

C. Adding 1 to SUB until > than 6.

D. Subtracing 1 from SUB until > than 6.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!