Assign memory dynamically for an array



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Assign memory dynamically for an array

Postby pavanmf » Tue Jul 06, 2010 3:49 pm

is it possible Assign memory dynamically for an array ?
pavanmf
 
Posts: 4
Joined: Tue Jul 06, 2010 3:26 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Assign memory dynamically for an array

 

Re: Arrays

Postby Anuj Dhawan » Tue Jul 06, 2010 9:12 pm

"Dynamically" could mean many things and that would need little more explanation from your part.

Keep in mind, COBOL is a complied language - and you need to tell it everything before compilation. I'm not sure but it looks like you'd to look at the explanation of DEPENDING ON clause in COBOL reference manuals, probably that will help in your quench, as of now.
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: Arrays

Postby abhishek rai » Tue Jul 06, 2010 11:39 pm

i think it is not possible directly,but you can pass the index number for array through SYSIN or Proc.
abhishek rai
 
Posts: 1
Joined: Tue Jul 06, 2010 10:46 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Arrays

Postby pavanmf » Wed Jul 07, 2010 3:48 pm

Thanks for your information..
pavanmf
 
Posts: 4
Joined: Tue Jul 06, 2010 3:26 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Arrays

Postby Anuj Dhawan » Sun Jul 18, 2010 11:45 am

abhishek rai wrote:i think it is not possible directly,but you can pass the index number for array through SYSIN or Proc.
I'm not sure how would this work for the "definition of dynamic arrays"?
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post