How do you define a table/array in COBOL?
Answer Posted / anil prajapati
Table/array can be defined in cobol by using occurs with
times clause
like
working-=storage section.
01 tab1 value 'anilkumarprajapati'.
03 tab2 pic x(3) occurs 6 times indexed by i.
procedure division.
display tab2(i).
stop run.
output will be dsiplayed like
ani
lku
....
| Is This Answer Correct ? | 23 Yes | 9 No |
Post New Answer View All Answers
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
) how do u code after getting data?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What rules are to be followed while using the corresponding options?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How you can characterize tables in cobol?
explain sorting techniques in cobol program?
) How do u handle errors in BMS macro?
How to remove 2 duplicate records and copy only one using job control language?
what is search and searchall?what is the diffrence between them?give an best example?
how to convert the recors form vsam file to db2 table tru file aid
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Are you comfortable in cobol or jcl?