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


Please Help Members By Posting Answers For Below Questions

Can we change the password using ALTER? anyone tried and changed?

1632


What is the difference between comp and comp-3 usage?

775


What is the difference between PIC 9.99 and PIC9v99?

902


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

761


how do you reference the esds vsam file formats from cobol programs

731






What are the pertinent COBOL

2124


What are the rules of the move verb?

813


How many sections are there in data division in COBOL?

789


Define cobol?

976


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

943


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2163


What is the Purpose of Pointer in the string?

721


Give some examples of command terminators?

848


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

768


) How do u handle errors in BMS macro

1588