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
 

 

Dynamic array allocation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
chakrapani.itte

New User


Joined: 23 Jan 2008
Posts: 4
Location: india

PostPosted: Wed Jan 23, 2008 2:26 am    Post subject: Dynamic array allocation
Reply with quote

How to define dynamic arrays in PL/I
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Jan 23, 2008 2:57 am    Post subject: Reply to: Dynamic array allocation
Reply with quote

Code:
dcl arr1(siz1,siz2) fixed bin controlled ;
siz1 = 8 ;
siz2 = 14 ;
allocate arr1 ;
Back to top
View user's profile Send private message
chakrapani.itte

New User


Joined: 23 Jan 2008
Posts: 4
Location: india

PostPosted: Wed Jan 23, 2008 3:01 am    Post subject:
Reply with quote

Thanks e.s
Back to top
View user's profile Send private message
chakrapani.itte

New User


Joined: 23 Jan 2008
Posts: 4
Location: india

PostPosted: Wed Jan 23, 2008 3:04 am    Post subject:
Reply with quote

What is the max size that we can go for dynamic allocation
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Jan 23, 2008 3:06 am    Post subject: Reply to: Dynamic array allocation
Reply with quote

it depends on the max region size allowed
Back to top
View user's profile Send private message
chakrapani.itte

New User


Joined: 23 Jan 2008
Posts: 4
Location: india

PostPosted: Wed Jan 23, 2008 3:15 am    Post subject:
Reply with quote

I am not using any JCL here to allocate the memory.
Its VM/CMS environment,running PLI module using a rexx program.
Any idea what's the max siz of dyn array
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    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 Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Unstring list of values into an array. Roshnii COBOL Programming 8 Mon Jun 27, 2016 6:25 pm


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