How do define Dymanic array in cobol how do u define single
demensional arry and multidymensional arry in ur cobol.

Answer Posted / mahesh

single dimensional array-
01 year grp.
05 month pic 9(2) occurs 12times.

multi dimensional array
01 year grp.
05 month occurs 12times.
05 weak occurs 4 times.
05 days pic x(4) occurs 7 times.

dynamic array-
01 yy grp.
05 month pic x(4) occurs 10-12 times depending upon 'yygrp'.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between static and dynamic call in cobol?

764


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2043


) what is the difference between AID and HANDLE AID?

1621


Why occurs cannot be used in 01 level in COBOL?

703


What are various search techniques in cobol? Explain.

635






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

1618


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5649


what is amode(24), amode(31), rmode(24) and rmode(any)?

680


What is the local-storage section?

668


A table has two indexes defined. Which one will be used by the SEARCH?

739


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?

6776


What is the difference between PIC 9.99 and 9v99 in COBOL?

720


how do you reference the ksds vsam file formats from cobol programs

645


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

984


What are the different rules to perform a Search?

608