MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Allocating storage

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Gir
Beginner


Joined: 19 Dec 2002
Posts: 2
Topics: 1
Location: Chennai, India

PostPosted: Thu Dec 19, 2002 9:58 am    Post subject: Allocating storage Reply with quote

Hi

Is there any way to allocate 50MB of auxiliary storage using COBOL program?

Cheers
Gir
Back to top
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Dec 19, 2002 12:01 pm    Post subject: Reply with quote

What is your definition of auxiliary storage? Please clarify your need.

Bill
Back to top
View user's profile Send private message
Gir
Beginner


Joined: 19 Dec 2002
Posts: 2
Topics: 1
Location: Chennai, India

PostPosted: Thu Dec 19, 2002 11:58 pm    Post subject: Reply with quote

Sorry..

I want to allocate 50MB of main storage for a cobol program. Is that possible? If so can you tell me how we can access that storage.

My question is like assembler, can we access dynamic storage using cobol program?
Back to top
View user's profile Send private message Send e-mail
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Dec 20, 2002 1:46 am    Post subject: Reply with quote

Why don't you tell us why and what you want to do so that we can really answer your need, why would you need 50MB of storage?
Back to top
View user's profile Send private message Visit poster's website
zatlas
Beginner


Joined: 17 Dec 2002
Posts: 43
Topics: 4

PostPosted: Mon Dec 23, 2002 11:20 am    Post subject: Reply with quote

Hi
In CICS you could do EXEC CICS GETMAIN... which is exactly what you want.
You could (and I suspect you could find something like that in CBTTTAPE [WWW.CBTTAPE.ORG] or some other open source repository) code some assembler program that you CALL to get memory and free it.
I do not have (yet) too much experience with the new features of the Object Oriented aspects of COBOL available in the newest releases of the mainframe COBOL as well as most major non mainframe COBOL compilers (i.e. MicroFocus, Fujitsu and TheKompany's Kobol). You may want to look at these features and see whether they have it naturally or you could develop a general use COBOL class to allocate memory. I may be tempted to develop such class (and/or Assembler subprogram) for the open source community when I finish my current project.
ZA
Back to top
View user's profile Send private message
zatlas
Beginner


Joined: 17 Dec 2002
Posts: 43
Topics: 4

PostPosted: Thu Dec 26, 2002 12:37 am    Post subject: Reply with quote

Hi
It was brought to my attention that in the mainframe you could use the LE CEEGTST function. I do not know yet if there is any equivalent for Microfocus COBOL
ZA
Back to top
View user's profile Send private message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Thu Dec 26, 2002 7:23 am    Post subject: Reply with quote

I would say 50mb of contiguous memory is an excessive amount!! I suppose you know what you are doing !
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group