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
How you can read the file from bottom?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Mention the guidelines to write a structured cobol program?
What are the different data types in cobol?
Difference between cobol and cobol-ii?
How can you get the ksds file records into your cobol program?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the difference between structured cobol programming and object alternativelyiented cobol?
Which mode is used to operate the sequential file?
What kind of error is trapped by on size error option?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the Purpose of Pointer in the string?