How do define dynamic array in cobol.



How do define dynamic array in cobol...

Answer / Mitan Verma

In COBOL, you cannot directly define a dynamic array (an array whose size is not known at compile time). However, you can use the ALLOCATE and DEALLOCATE statements to dynamically allocate and free memory for an array during runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

) how do u code after getting data?

1 Answers   IBM,


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

1 Answers  


What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9 (4) COMP." any reason?.Please let me know any one... Cheers,Prasad

8 Answers   Syntel,


01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy

13 Answers   HSBC,


What is "Call by content" and "call by reference"?

4 Answers   ADP, Syntel,


how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........

4 Answers   Wipro,


what is qualification on occurs clause?

2 Answers  


why we are using set in searchall?

4 Answers   IBM,


what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


Describe the difference between subscripting and indexing ?

2 Answers  


When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these

6 Answers   Wipro,


What is SSRANGE, NOSSRANGE ?

5 Answers  


Categories