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 / ram.g
sorry for my wrong ans..
it will be in the infinite loop...
should use different ws variables..
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the usage of comp fields in cobol?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are 77 levels used for?
Explain the configuration section of a cobol program with examples of syntax.
How can you get the ksds file records into your cobol program?
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 arrays can be defined in COBOL?
How many bytes S(8) comp field occupy and its maximum value?
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.
What is the difference between PIC 9.99 and 9v99 in COBOL?
What are the cobol coding sheets?
what is search and searchall?what is the diffrence between them?give an best example?
Name the divisions, which are available in a cobol program?
how to refer the data field?