View previous topic :: View next topic |
Author |
Message |
anbesivam Beginner
Joined: 09 Aug 2006 Posts: 66 Topics: 14
|
Posted: Mon Sep 18, 2006 10:05 am Post subject: ALLOCATE memory space |
|
|
Hi,
Could anybody know about How to ALLOCATE memory space which can be used by the program.
I used to allocate dynamic files through ALLOCATE statement. But I don't know how to Allocate "memory space" for a program.
I need to do following things,
1. Allocate memory space
2. Get values from the momery
3. Retrun value from memory
5. FREE memory space.
Please help me on this. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
anbesivam Beginner
Joined: 09 Aug 2006 Posts: 66 Topics: 14
|
Posted: Tue Sep 19, 2006 4:40 am Post subject: |
|
|
Hi kolusu,
Thanks much for your information. |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Wed Sep 20, 2006 11:15 am Post subject: |
|
|
Or, use one of the LE callable service (name eludes me - sorry). _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Sep 20, 2006 11:22 am Post subject: |
|
|
Cogito-Ergo-Sum wrote: | Or, use one of the LE callable service (name eludes me - sorry). |
Cogito,
hmm may be you did not click on the link posted by me
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Wed Sep 20, 2006 12:19 pm Post subject: |
|
|
True, because, I saw highlight=getmain  _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Sep 20, 2006 12:33 pm Post subject: |
|
|
The original question asked about something you'd never need to do... get new memory, read it, and free it. If the memory is new then it will contain garbage or zeros. Maybe the original poster wanted to know how to chase existing control blocks and misused the term "allocate". |
|
Back to top |
|
 |
anbesivam Beginner
Joined: 09 Aug 2006 Posts: 66 Topics: 14
|
Posted: Thu Sep 21, 2006 5:07 am Post subject: |
|
|
Thanks for further analysis on this topic.
As per Kolusu's link, I have found that ALLOCATE statement will help for PL 1 Programming (bauer - Mentioned).
This was helped me to dig that area more.
As per my undersanding, we can use new AREA allocation for above senario and using offset we can get the allocated storage. Using FREE statement, we can free the space.
If you feel, I am not in the right track, Please correct me.
I will be very happy, If you all provide any valuble comments on this. |
|
Back to top |
|
 |
|
|