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 / vikas
Just once. The 'move 1 to a' is not in the para1. So its is NOT infinite loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between goback, stop run and exit program in cobol?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How many bytes S(8) comp field occupy and its maximum value?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do define dynamic array in cobol.
How are the next sentence and continue different from each other?
What are 77 levels used for?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
How many sections are there in data division in COBOL?
How do you differentiate between cobol and cobol-ii?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is perform what is varying?
In COBOL programming, what is PERFORM? What is VARYING?