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 are various search techniques in cobol? Explain.

650


Why did you choose to work with ibm mainframe cobol programming?

631


i want a program using by if, evaluate , string, unstring, perform, occurs?

4065


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908


What type of SDLC u followed? Why?

1522






what is s000 u4087 error? please give the all error codes in cobol,jcl.

17054


What is the difference between comp and comp-3?

704


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2107


How many bytes S(8) comp field occupy and its maximum value?

1634


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

815


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

822


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

934


What is difference between static and dynamic call in cobol?

779


Which division and paragraphs are mandatory for a COBOL program?

712


Write the code to count the sum of n natural numbers.

703