what is the difference btw interactive and batch in cobol?
You asked a whole bunch, but lets start out with
the perform varying. But the following into your
code, compile it, and execute it. By that time
you should be able to figure out what to ask.
In the working storage.
01 this-is-a-number picture 9(3).
In the procedure division.
varying this-is-a-number from 1 by 1
until this-is-a-number is greater than 10.