IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

builtin function ALLOCATE vs CEEGTST program


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   This topic is locked: you cannot edit posts or make replies.
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Apr 25, 2009 12:40 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Apr 25, 2009 10:56 pm
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. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts DB2 Event passed to the Application P... DB2 1
No new posts DATE2 function SYNCSORT 15
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top