Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dynamic array in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sudhee_rb

New User


Joined: 29 Mar 2006
Posts: 34

PostPosted: Tue Apr 04, 2006 7:57 pm    Post subject: Dynamic array in cobol
Reply with quote

Hi
This is sudheer

is there any concept dynamic array in cobol.
how can i use dynemic array
where can we use?

bye
Back to top
View user's profile Send private message

martin9

Active User


Joined: 01 Mar 2006
Posts: 287
Location: Basel, Switzerland

PostPosted: Tue Apr 04, 2006 8:15 pm    Post subject:
Reply with quote

hy sudhee_rb,

use OCCURS with DEPENDING ON...

martin9
Back to top
View user's profile Send private message
ankur.sanghi

New User


Joined: 05 Apr 2006
Posts: 3

PostPosted: Thu Apr 06, 2006 5:09 pm    Post subject: Not really
Reply with quote

Hi guys,

This question was put to me in an interview. I replied the same. But the interviewer then explained that when we use DEPENDING ON, the memory is actually allocated for the maximum length.

In that sense, there is no dynamic memory allocation in cobol and hence no dynamic arrays in Cobol.

Hope that clarifies!!
ankur
Back to top
View user's profile Send private message
ranga_subham

New User


Joined: 01 Jul 2005
Posts: 51

PostPosted: Fri Apr 07, 2006 8:44 pm    Post subject: Re: Dynemic Array
Reply with quote

Quote:

when we use DEPENDING ON, the memory is actually allocated for the maximum length.


Whatever the interviwer told to you was true only. But, not every time you load the full length of the dynamic array. Whenever the depending variable gives you some value then depending on that value only array will be loaded. Ok.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us