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

what are decleratives in cobol?

1827


) How do u handle errors in BMS macro

1512


Define static linking and dynamic linking.

669


Explain the configuration section of a cobol program with examples of syntax.

660


Explain how you can characterize tables in cobol?

638






Write a program that uses move corresponding.

673


How do you define a variable of comp-1 and comp-2?

705


How do you get the data to code the BMS macro?

1476


Explain what you understand by passing by value.

702


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

666


What is the difference between external and global variables in COBOL?

815


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8657


What is length is cobol?

650


What is the difference between Call and a Link?

700


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588