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
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.
What is amode(31)
How to know whether the module is dynamical or statistical?
What is inspect in cobol ?
In COBOL, what is the different between index and subscript?
Write a cobol program making use of the redefine clause.
How many sections are there in data division in COBOL?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the usage of comp fields in cobol?
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 ......
How arrays can be defined in COBOL?
Give some examples of command terminators?
What is the difference between perform … with test after and perform … with test before?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are the pertinent COBOL commands?