View previous topic :: View next topic
|
Author |
Message |
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
i have an array of pic x(10) occurs 10 times.
Now the length of the array is 100.
now in case 5 cases are filled with data and rest 5 are spaces will there be any change in length or memory occupied ???? |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
The memory is allocated at the start of your program. There is no difference in memory usage if the array is populated or not. COBOL have no concept of a 'NULL' value.
Dave |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi ashimer,
The array length will be 100 bytes only no matter whether array are poulated or not. |
|
Back to top |
|
|
|