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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
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: 10375
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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm

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