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
Write some characteristics of cobol as means of business language.
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How are the next sentence and continue different from each other?
What is the difference between PIC 9.99 and PIC9v99?
Give some examples of command terminators?
HOw can I get the negative sign while deduct high value from low value
Write a program to enter and display the names of students in a class using the occurs clause.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
Why would you use find and get rather than to obtain?
What is link edit in cobol?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Can we redefine the field of x(200) to less than 200?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this