I have 2 dimensional array with having 100 elements. So how
to find the 11th item in an array?
Answer Posted / neelam saini
i think above answers r worng.
working-storage section.
01 WS-ARR.
02 WS-A OCCURS 10 TIMES.
03 WS-D OCCURS 10 TIMES PIC XX.
01 I PIC 9(2).
01 J PIC 9(2).
PROCEDURE DIVISION.
MAIN-SECTION.
MAIN-PARA.
PERFORM PARA1 VARYING I FROM 1 BY 1 UNTIL I > 10
AFTER J FROM 1 BY 1 UNTIL J > 10.
DISPLAY WS-D(1,2).
STOP RUN.
PARA1.
ACCEPT WS-D(I , J).
Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
Can we change the password using ALTER? anyone tried and changed?
What is the difference between comp and comp-3 usage?
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
how do you reference the esds vsam file formats from cobol programs
What are the pertinent COBOL
What are the rules of the move verb?
How many sections are there in data division in COBOL?
Define cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the Purpose of Pointer in the string?
Give some examples of command terminators?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
) How do u handle errors in BMS macro