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: 288
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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