IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Array length change in length affect memory occupied


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Wed Nov 01, 2006 5:18 pm
Reply with quote

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Nov 01, 2006 6:40 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Nov 01, 2006 7:28 pm
Reply with quote

Hi ashimer,
The array length will be 100 bytes only no matter whether array are poulated or not.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
Search our Forums:

Back to Top