Consider the following:
77 W-NUM PIC 9 VALUE 0
------
MOVE 1 TO W-NUM
PERFORM PARA-X UNTIL W-NUM > 9.
------
PARA-X
ADD 1 TO W-NUM
How many times PARA-X is executed ?
Answer Posted / guna
9 times.
Initially, W-Num value will be 1.
1>9, so para will be executed. - 1 time
2>9, so para will be executed. - 2 times
3>9, so para will be executed. - 3 times
4>9, so para will be executed. - 4 times
5>9, so para will be executed. - 5 times
6>9, so para will be executed. - 6 times
7>9, so para will be executed. - 7 times
8>9, so para will be executed. - 8 times
9>9, so para will be executed. - 9 times
10>9, so para will not be executed
so para is executed for 9 times.
| Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
what is difference between cobol and cobol/400
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is redefines clause in COBOL?
What is the difference between Global and External Variables?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
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.
What are the pertinent COBOL commands?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How do you reference the fixed block file formats from cobol programs
What is perform what is varying?
What is Pic 9v99 Indicates in COBOL?
What is the difference between PIC 9.99 and PIC9v99?
What is cobol?
What do you understand by psb and acb?