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 / guest

it will go in a infinite loop. But simply because
when W-NUM is 9, after "ADD 1 TO W-NUM", W_NUM would again
become 0.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is length is cobol?

656


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1938


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2116


how do you reference the ksds vsam file formats from cobol programs

671


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

728






how to convert the recors form vsam file to db2 table tru file aid

2767


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2110


What are the pertinent COBOL

2054


how do you define single dimensional array and multidimensional array in your cobol?

689


What is perform what is varying?

713


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.

5072


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8186


Write a cobol program making use of the redefine clause.

743


What is the difference between binary search and sequential search?

648


Describe the cobol database components?

686