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 the default value(s) for an initialize and what keyword allows for an override of the default?

697


what are decleratives in cobol?

1827


In COBOL programming, what is PERFORM? What is VARYING?

672


State the various causes of s0c1, s0c5 and s0c7.

665


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710






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

634


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


Write a cobol program making use of the redefine clause.

736


What is difference between static and dynamic call in cobol?

777


what is the difference between COBOL2 AND COBOL390?

2454


What is the difference between goback, stop run and exit program in cobol?

932


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

705


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.

5695


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1783


Write the code to count the sum of n natural numbers.

701