can u plz expain me how to declare dynamic array? what is
the meaning of depending on clause in dynamic array?

Answer Posted / kk

dynaic array is notink but a two dimension array.

01 studet.
02 stunam occurs 3 to 4 times depanding on n.
03 stuname pic x(15).
03 stumrk occurs 2 times.
04 stumark pic 9(3).
this is dynamic array.now runtime will pass the input.because
using depanding clause.

depanding clause pass the value runtime.

Is This Answer Correct ?    3 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

695


How many bytes S(8) comp field occupy and its maximum value?

1620


What rules are to be followed while using the corresponding options?

627


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

762


How do you differentiate between cobol and cobol-ii?

643






What do you understand by psb and acb?

659


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1946


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

632


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.

5049


How arrays can be defined in COBOL?

658


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6782


What is a report item?

729


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

806


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1915


What is inspect in cobol ?

791