How many times the loop runs here
01 a pic 9(2) value 1.
perform para1 until a=10
move 1 to a.
stop run.
para1:
move 10 to a.
Answer Posted / vinod
it dirctly move 10 to a when perform para1 until a=10
after that it moves to the para the condition is checked
and pass the a value to 10.
again the perform is check the condion its true move the
value to 1.agin it passes the same so it is a infinite loop.
| Is This Answer Correct ? | 3 Yes | 23 No |
Post New Answer View All Answers
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is the problem of ordered sequential files access?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Name some of the examples of COBOl 11?
What is the difference between perform … with test after and perform … with test before?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Difference between cobol and cobol-ii?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How many sections are there in data division in COBOL?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
When is inspect verb is used in cobol?
Name the sections present in data division.