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 / thrivikram
it goes into infinite loop.
when w-num =9 , it will become 0
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
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 do define dynamic array in cobol.
how to refer the data field?
Difference between array and sub-script ?
What rules are followed by the search verb.
What type of SDLC u followed? Why?
How do u write test cases?
What are literals?
What is a scope terminator give example?
What are the access modes of START statement?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Write down the divisions of cobol program?
What is inspect in cobol ?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic