Here’s logic how to use PERFORM UNTIL. We use PERFORM statement for handling loops in COBOL. Here, this example shows PERFORM with UNTIL.
PERFORM Varying Until Syntax
VARYING a-variable-value FROM start-value BY increment-value UNTIL some-condition-is-met PERFORM Varying
UNTIL Example PERFORM PARA-A
VARYING TEST-1 FROM 1 BY 1 UNTIL TEST-1 > 1000 OR FILE-SWITCH = 'EOF'
You can use this COBOL logic written using PERFORM TEST AFTER. This is one best way of handling loops in COBOL programs. After reading input files you need to validate each record. So this logic helps you as a guide.
by Srini August 24, 2016 November 14, 2020
Helpful python filter() examples that show you the usage of it on lists to filter out the True values.
by Srini March 27, 2023 March 30, 2023
The MSGCLASS and MSGLEVEL control the print of messages to the output listing. Here are the detailed meanings and default values.
Here are the top gift ideas for software developers that you can buy online for their marriages, birthdays, and other special occasions.
by Srini March 25, 2023 March 25, 2023
Here are the essential properties of Web 3.0 and how it helps the user improve web usage satisfaction.
by Srini March 19, 2023 March 22, 2023
Load more posts
Something went wrong. Please refresh the page and/or try again.
Like this: Like Loading...