Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts Program usage statistics? John Poulakos CICS 6 Wed May 16, 2018 2:22 am
No new posts Error executing Java program in OSGI ... danik56 CICS 0 Thu Apr 26, 2018 12:16 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us