77 I pic 99 value 5
Perorm para-A I times.
Para -A.
move 10 to I.
How many times the para-A will be executed.?
Answers were Sorted based on User's Feedback
Answer / rana
Only 5 Times as it won't take the 10 which is intialized in
Para-A.
Is This Answer Correct ? | 16 Yes | 4 No |
Answer / sivaram
It goes into loop since the variable takes the 10 in it
every time when it performs.Generally the variable should be
decremented by 1 for correct results.
Is This Answer Correct ? | 4 Yes | 4 No |
Answer / kiran
5 times
why bcoze once para-A I times executed,initially the value
of i=5;
5 time para -A executed
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / gowtham
Hi, I have executed above code and it performed 6 times. SO the answer is 6 times.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chinna
Please confirm which ans is correct ?
why it wont take I = 10?
can any one give explanation ?
Thanks ,
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / suputhru
Para -A.
move 10 to I.
display I.
it will move 10 to I upto 5 times.
10 20 30 40 50.
it will execute 5 times only.
Is This Answer Correct ? | 3 Yes | 4 No |
Answer / prachi
when it will execute perform statement for the first time,
the value in i is 5..Then it is moving 10 to i ..So when it
will execute the perform 2nd time...that time the value of
i is 10..so Para-A will be performed 11 times...
Please let me know my ans is correct or not...
Is This Answer Correct ? | 0 Yes | 3 No |
how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
file status 00 is checked after opening the file or reading the file
where will we code call by content and call by reference dude pls reply soon ?
how do you reference the rrds file formats from cobol programs
write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...
How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree
study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10
A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25
how can we fetch 3 records in cobol pgm any coding pls ?
which is better comp or comp-3 in terms of memory utilization?
How can we increase the size of an existing PDS to include more no. of modules. I tried the answer posted by Jagan(TSO PDS 'pds name') but did not find it working. The answer posted by kamal i know very well. Please suggest me a answer so that we don't need to delete the existing PDS and still we can change the size as well.
how to run sub programs using static and dynamic call ...