What is the difference between the PERFORM...THRU and PERFORM...VARYING statements in COBOL?
- PERFORM...THRU is used for conditional loops, while PERFORM...VARYING is used for unconditional loops
- PERFORM...THRU is used for iterative loops, while PERFORM...VARYING is used for nested loops
- PERFORM...THRU is used for nested loops, while PERFORM...VARYING is used for iterative loops
- There is no difference between PERFORM...THRU and PERFORM...VARYING
The PERFORM...THRU statement in COBOL is used for nested loops, allowing the programmer to execute a series of paragraphs or sections. On the other hand, PERFORM...VARYING is used for iterative loops, allowing the iteration through a range of values.
Loading...
Related Quiz
- How can the FUNCTION LENGTH intrinsic function be used to determine the length of a string in COBOL?
- The 88-level condition names in COBOL are used for creating ________ conditions based on data values.
- What does the CLOSE verb with the REEL and UNIT clauses signify when used in COBOL file handling?
- When using the REDEFINES clause in COBOL, what happens to the memory occupied by the redefined data items?
- Explain the purpose of the PREPARE statement in COBOL when dealing with dynamic SQL.