View previous topic :: View next topic |
Author |
Message |
Gir Beginner
Joined: 19 Dec 2002 Posts: 2 Topics: 1 Location: Chennai, India
|
Posted: Thu Dec 19, 2002 9:58 am Post subject: Allocating storage |
|
|
Hi
Is there any way to allocate 50MB of auxiliary storage using COBOL program?
Cheers
Gir |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Dec 19, 2002 12:01 pm Post subject: |
|
|
What is your definition of auxiliary storage? Please clarify your need.
Bill |
|
Back to top |
|
|
Gir Beginner
Joined: 19 Dec 2002 Posts: 2 Topics: 1 Location: Chennai, India
|
Posted: Thu Dec 19, 2002 11:58 pm Post subject: |
|
|
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 |
|
|
warp5 Intermediate
Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Fri Dec 20, 2002 1:46 am Post subject: |
|
|
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 |
|
|
zatlas Beginner
Joined: 17 Dec 2002 Posts: 43 Topics: 4
|
Posted: Mon Dec 23, 2002 11:20 am Post subject: |
|
|
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 |
|
|
zatlas Beginner
Joined: 17 Dec 2002 Posts: 43 Topics: 4
|
Posted: Thu Dec 26, 2002 12:37 am Post subject: |
|
|
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 |
|
|
DaveyC Moderator
Joined: 02 Dec 2002 Posts: 151 Topics: 3 Location: Perth, Western Australia
|
Posted: Thu Dec 26, 2002 7:23 am Post subject: |
|
|
I would say 50mb of contiguous memory is an excessive amount!! I suppose you know what you are doing ! _________________ Dave Crayford |
|
Back to top |
|
|
|
|