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 |
What will happen if we generate GDG (+2) version without generating (+1) version?
How to remove 2 duplicate records and copy only one using job control language?
what is MSGLEVEL?
how to convert the recors form vsam file to db2 table tru file aid
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
How to convert bunch of words in a line to relvant ASCII values?
what is meaning by design document? who can repared for this?
wht is the difference between goto and perform stmts
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
How to define a array dynamically.....