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
what is difference between cobol and cobol/400
Explain the configuration section of a cobol program with examples of syntax.
What is perform what is varying?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How do you reference the fixed block file formats from cobol programs
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How many sections are there in data division in COBOL?
What are the pertinent COBOL commands?
Explain about different table spaces.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What are 77 levels used for?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Write the code to count the sum of n natural numbers.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between Call and a Link?