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
What is the use of intialize verb?
Write a program to explain size error.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is difference between static and dynamic call in cobol?
In COBOL programming, what is PERFORM? What is VARYING?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Write a program that uses move corresponding.
Whats the difference between search & search ALL?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
) How do u handle errors in BMS macro?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Describe the cobol database components?
Which Search verb is equivalent to PERFORM…VARYING?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How do you reference the following file formats from cobol programs?