How do you define a table/array in COBOL?

Answer Posted / sudheer

To define a table use occur clause ..

01 WT-TABLE-DATA.
03 WT-TAB-PARM OCCURS 99 TIMES
INDEXED BY WT-TAB-IDX.
05 WT-TAB-PARMREC.
10 TBL-PARM-UPDT-CD PIC X(02).
10 FILLER PIC X(01).
10 TBL-STATUS-FLAG PIC X(01).
10 FILLER PIC X(76).

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what happens if parmparameter passes zero bytes to the program

1662


What are all the divisions of a COBOL program?

662


Name the sections present in data division.

699


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

2053


i need a small 3d program using inline and outline.

1632






What is report-item in COBOL?

707


In which area will you utilize 88 level items in cobol?

719


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1930


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1521


Can we redefine the field of x(200) to less than 200?

814


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3715


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

673


Write some characteristics of cobol as means of business language.

618


Why would you use find and get rather than to obtain?

681


What the difference is between continue and next sentence?

654