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
how do you reference the printer file formats from cobol programs
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is length is cobol?
) How do u handle errors in BMS macro
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how can i see junk values in dclgen or in hostvariable of comp ?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
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
State the various causes of s0c1, s0c5 and s0c7.
What is the use of intialize verb?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Name the divisions, which are available in a cobol program?
What is static and dynamic call in cobol?