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 is a scope terminator give example?
IF I mention stop run in CICS what happens?
Differentiate between structured cobol programming and object-oriented cobol programming.
Can we redefine the field of x(200) to less than 200?
What are the access modes of START statement?
Which division and paragraphs are mandatory for a COBOL program?
For rewrite, why is it mandatory that file needs to be opened?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
how do you reference the variable unblock file formats from cobol programs
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the difference between binary search and sequential search?
When is inspect verb is used in cobol?
What are the different rules to perform a Search?