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
 

 

Storage Limits for Variable/Arrays in PL/1

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

New User


Joined: 12 Jan 2007
Posts: 13
Location: Ontario, Canada

PostPosted: Thu May 10, 2007 11:52 pm    Post subject: Storage Limits for Variable/Arrays in PL/1
Reply with quote

Hi All.

I am having problems while storing the Array listed below:

DCL BIT_ARRAY(9984) BIT(32000);

The total amount of memory needed for this array is just under 40m(9984*4000). I got a compiler error saying I cannot go above the 16M line in memory.

I tried to Dynamically allocate a 2 dimentional array at runtime with the same storage requirements, and overlay the array that I need.

DCL (ROW,R_BIT) FIXED BIN(15);

DCL COMP_ARRAY(ROW,R_BIT) CHAR(1) CONTROLLED;
DCL BIT_ARRAY(9984) BIT(32000) BASED(ADDR(COMP_ARRAY));

ROW = 9984;
R_BIT = 4000;

ALLOCATE COMP_ARRAY;

This worked fine to compile, but as soon as I ran and started to load BIT_ARRAY after 16m of data is loaded I abend with a SOC4 message. Does anyone know away out of this storage problem without using LINK LISTS?

Thanks in advance
Back to top
View user's profile Send private message

Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri May 11, 2007 12:44 am    Post subject:
Reply with quote

You are problebly running in lower memory. Check AMODE and RMODE. If you want to run in upper (unlimited) then it should be 32 and any. Seems you compiled/linked with 24. The lower memory is restricted to 16 MB including the operating system which takes about 7 MB so there's not much left for your array.
Back to top
View user's profile Send private message
delly999

New User


Joined: 12 Jan 2007
Posts: 13
Location: Ontario, Canada

PostPosted: Fri May 11, 2007 1:14 am    Post subject: Re: Storage Limits for Variable/Arrays in PL/1
Reply with quote

Thanks Bitneuker,

This helped me find the problem. It was essentially a Endevor problem. Even though I have the correct Link Option in the program, and the Endevor load module looked to be listed as AMODE=31 and RMODE=ANY, the program was still treated as AMODE=24. I created JCL Compiler with my own LOADLIB and ran successfully. Thanks for your help. Cheers
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Fri May 11, 2007 3:28 am    Post subject:
Reply with quote

You mean this was BUG in Endevor?
Back to top
View user's profile Send private message
delly999

New User


Joined: 12 Jan 2007
Posts: 13
Location: Ontario, Canada

PostPosted: Fri May 11, 2007 6:21 pm    Post subject: Re: Storage Limits for Variable/Arrays in PL/1
Reply with quote

Seems that way. When I compile using Endevor and execute the program from the load lib that Endevor creates I have the problem above, and when I compile outside of Endevor I do not. We just created a Development system that had some kinks that still needed to be worked out. Will hammer it out with CA folks.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri May 11, 2007 11:03 pm    Post subject: Re: Storage Limits for Variable/Arrays in PL/1
Reply with quote

delly999 wrote:
Thanks Bitneuker,

Thanks for your help. Cheers


glad to be of help icon_wink.gif
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 Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am
No new posts JOINKEYs and Variable files migusd SYNCSORT 8 Fri Jun 17, 2016 3:16 am
No new posts File Manager with Variable Length File ahabib IBM Tools 10 Thu Mar 31, 2016 11:00 pm


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