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
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What is the difference between next sentence and continue in cobol programing language?
What are declaratives and what are their uses in cobol?
What rules are to be followed while using the corresponding options?
What the difference is between continue and next sentence?
Which is not true about evaluate statement
What are all the divisions of a COBOL program?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
how do you reference the esds vsam file formats from cobol programs
For rewrite, why is it mandatory that file needs to be opened?
) how do u code after getting data?
What is static and dynamic call in cobol?
Have you used comp and comp-3 in your project? And how?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?