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
Answers were Sorted based on User's Feedback
Answer / ram g
O is the right answer...when condition is true in
umtil...loop will comeout...
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / suresh ramaiyan
At the first time the value of TIMES-COUNTER is 1, so the
PARA-A will not execute even a single time.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / harish
hi,
according to me i think its b. 1 times
initially times-counter is 1 > 0
so its right
condition satisfies
pls correct me if i am wrong
HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA
| Is This Answer Correct ? | 1 Yes | 9 No |
PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted?
01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?
If you were passing a table via linkage, which is preferable - a subscript or an index?
What is normalisation?
When and how can we use index & subscript ?
What is Static,Dynamic linking ?
A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?
What are the different forms of EVALUATE statement?
OCCURS clause is used in the DATA DIVISION on data names at (a) 01 level (b) 77 level (c) 88 level (d) any level from 02 to 49
When can the USING phrase be included in the call statement ?
What are declaratives and what are their uses in cobol?