how will u retreive value from a table.write it with syntex.
01 ws-table
05 ws-table1 occurs 10 times.
05 ws-table2 occurs 10 times.
the above is 2 dimensional array..how will u retrieve 1st
element of an array
Answer Posted / abhishek
while declaring a two dimensional array we have to use the
INDEXED BY clause
01 ws-array
05 ws-table1 occurs 10 times INDEXED BY I
10 ws-table2 occures 10 times INDEXED BY J
15 var-1 pic x(4)
15 var-2 pic x(5)
01 i pic 9(2).
01 j pic 9(2).
procedure division.
perform varing i from 1 by 1 until i>10
AFTER varing j from 1 by 1 until i>10
accept var-1(i,J)
accept var-2(i,J)
end-perform.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a program to explain size error.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How you can characterize tables in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is comp-1 and comp-2?
example for sub strings ? and refernce modifications whit output pls
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are various search techniques in cobol? Explain.
How can you get the ksds file records into your cobol program?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Difference between cobol and cobol-ii?
How do define dynamic array in cobol.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.