How many times the loop runs here
01 a pic 9(2) value 10.
perform para1 a times
stop run.
para1:
move 20 to a.

Answer Posted / shiva

initally a=10
perfrm para1 a(10) times
move 20 to a...so now a=20

now again perform para1 a(20)times
and loop goes on
hence infinite loop

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1863


What is amode(31)

807


How to know whether the module is dynamical or statistical?

750


What is inspect in cobol ?

881


In COBOL, what is the different between index and subscript?

851






Write a cobol program making use of the redefine clause.

826


How many sections are there in data division in COBOL?

792


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

836


What is the usage of comp fields in cobol?

753


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

11130


How arrays can be defined in COBOL?

741


Give some examples of command terminators?

848


What is the difference between perform … with test after and perform … with test before?

1001


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

812


What are the pertinent COBOL commands?

2712