I have 2 dimensional array with having 100 elements. So how
to find the 11th item in an array?
Answer Posted / ajay kumar ande
search for element "ajay" in name column using 2d array.suppose a table of 5*5,
procedure division
MOVE +1 TO I
PERFORM UNTILL I>5
MOVE +1 TO J
PERFORM UNTILL J>5
IF NAME = "AJAY"
DISPLAY "FOUND"
ELSE DISPLAY "NOT FOUND"
ADD +1 TO J
END-PERFORM
ADD +1 TO I
END-PERFORM
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Difference between cobol and cobol-ii?
What are different data types in cobol?
What is amode(24)?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What do you understand by psb and acb?
What is a scope terminator give example?
How can you get the ksds file records into your cobol program?
What is the local-storage section?
How do define dynamic array in cobol.
What is the problem of ordered sequential files access?
) what is the difference between AID and HANDLE AID?
What are the cobol coding sheets?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
how to convert the recors form vsam file to db2 table tru file aid
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?