How do you define a table/array in COBOL?
Answer Posted / thaya
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).
we can use "depending on" keyword with occure clause to
limit our occurences in output.
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Explain about different table spaces.
How you can characterize tables in cobol?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
) How do u handle errors in BMS macro
In COBOL, what is the different between index and subscript?
Can you please let me know the centre name of INS certification in Kolkata.
Explain how you can characterize tables in cobol?
how can i see junk values in dclgen or in hostvariable of comp ?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to print 10 to 1 if the input have only 10 digit number?
What kind of error is trapped by on size error option?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
When is inspect verb is used in cobol?
What is the Purpose of Pointer in the string?