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
 

 

builtin function ALLOCATE vs CEEGTST program

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
shashi1026

New User


Joined: 18 Nov 2008
Posts: 3
Location: Chennai

PostPosted: Sat Apr 25, 2009 12:26 pm    Post subject: builtin function ALLOCATE vs CEEGTST program
Reply with quote

Hi

could you please tell the differences between the PL/1 builtin function ALLOCATE and the routine CEEGTST used for dynamic memory allocation.


Thanks.
Shashi
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Sat Apr 25, 2009 12:40 pm    Post subject: Reply to: builtin function ALLOCATE vs CEEGTST program
Reply with quote

reading the manual and considering the parameters used for the invocation
should have already told You the difference...
have You looked at the manual yet ?

1) from a formal point of view
ALLOCATE is a PL/I statement ( the form should clarify what I mean )
GEEGTST is an external subroutin/function to get a generic chunk of storage from he heap

given point 1

DCL something CONTROLLED
ALLOCATE something
PL1 takes care of everything

CEEGTST ( see the proper parameters )
You MUST care of everything
- pointers and all the stuff
Back to top
View user's profile Send private message
shashi1026

New User


Joined: 18 Nov 2008
Posts: 3
Location: Chennai

PostPosted: Sat Apr 25, 2009 1:54 pm    Post subject: Reply to: builtin function ALLOCATE vs CEEGTST program
Reply with quote

Hi Enrico Sorichetti ,

Thanks for the reply.

I think my question was too generic.

I would like to know whether both ALLOCATE & CEEGTST will do same kind of operation ie. allocating a block of memory from heap.

Could you please tell if a program MAIN calls a service program ABC dynamically, and in ABC we are allocating a block of memory and populates it and returning the pointer to the allocated memory to the MAIN program. Then whether the memory block be available in MAIN program or will it be lost as ABC is called dynamically ?

Will allocating memory block using ALLOCATE , behave the same as allocating it using CEEGTST ?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Sat Apr 25, 2009 10:56 pm    Post subject: Reply to: builtin function ALLOCATE vs CEEGTST program
Reply with quote

looks like You didn' t read carefully my answer,
and You did not look at the manual

You had another topic on the same subject and You got good answers
why keep asking ???
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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