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
What are various search techniques in cobol? Explain.
Why did you choose to work with ibm mainframe cobol programming?
i want a program using by if, evaluate , string, unstring, perform, occurs?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What type of SDLC u followed? Why?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the difference between comp and comp-3?
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
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between external and global variables in COBOL?
Can we redefine the field of x(200) to less than 200?
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.
What is difference between static and dynamic call in cobol?
Which division and paragraphs are mandatory for a COBOL program?
Write the code to count the sum of n natural numbers.