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

maximum limit of array in pl1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krishna_mf

New User


Joined: 31 Jan 2007
Posts: 56
Location: banglore

PostPosted: Fri Jun 18, 2010 8:10 pm
Reply with quote

Hi

I need to increase the size of array declared as below

dcl address(2000) char(15);

I need to increase the limit from 2000 to some maximum available limit.
Please let me know what is the maxium limit suppoted by EPLI
This is IMS PLI programm.

Thanks
Krishna
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 18, 2010 8:32 pm
Reply with quote

why is it that you feel we should look-up the info
in the manual
for you?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 18, 2010 8:57 pm
Reply with quote

Hello,
Quote:

I need to increase the limit from 2000 to some maximum available limit.
Not likely a need. . . Is this just being lazy?

What business requirements dictates "a need for the maximum memory resource i can waste"?
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Jun 18, 2010 11:53 pm
Reply with quote

And anyhow, not withstanding the previous replies - why not just try some values.

A binary search should be efficient.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jun 19, 2010 12:41 am
Reply with quote

Or one might look in the "limits" for the pl/i compiler (available via the "IBM Manuals" link at the top of the page). . .

I always cringe when someone believes it is proper to write code depending on maximums. . . It is often (usually) the worst possible implementation alternative. . . icon_sad.gif

d
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Sat Jun 19, 2010 12:42 am
Reply with quote

Dick -

What is your frequency of cringing?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jun 19, 2010 12:44 am
Reply with quote

Well, i'm not yet seeking treatment. . .

Haven't yet been excused from any meetings. . .

icon_cool.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts COBOL Ascending and descending sort n... COBOL Programming 5
No new posts Expand ISPF field up to a limit - is ... TSO/ISPF 9
No new posts SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
No new posts To find an array of words (sys-symbol... JCL & VSAM 9
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
Search our Forums:

Back to Top