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
how do you reference the esds vsam file formats from cobol programs
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Explain how you can characterize tables in cobol?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What are the pertinent COBOL
Write a cobol program making use of the redefine clause.
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 do you define a variable of comp-1 and comp-2?
Why would you use find and get rather than to obtain?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
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
What are the different rules to perform a Search?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
) how do u code after getting data?
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.