COBOL PERFORM Until Vs Times

We all know that in COBOL to process commands in a loop you need to go for perform statements. You all very familiar about all the COBOL statements.

UNTIL Vs TIMES

  • There are two Perform statements, one is UNTIL and the other one is TIMES. The question is when to use these technics in a program.
  • If you know how many times a program code will run in a loop , then you need to go for TIMES. The other way you are not aware the number of times the code runs then you need to go for UNTIL. Also Read– 6 Top COBOL PERFORM Statements
  • Since, you are reading a big file,  you do not know the records you have then the UNTIL is most preferable.
  • This looks simple answer but the way telling should be understood by interviewer. Due to this reason, it became complex and logic related question.

Related Posts

Related Posts

Discover more from Srinimf

Subscribe now to keep reading and get access to the full archive.

Continue reading