B021 - Array occurences limit



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

B021 - Array occurences limit

Postby deepu_1156 » Tue Jun 02, 2009 6:03 am

I declared the following array in an easytrieve program,
WS-TBL1 W 10 A OCCURS 50000
WS-ITEM WS-TBL1 05 A
WS-STORE WS-TBL1 +05 05 A
When i compile the above piece of code, Im getting the error "B021- Parameter too large". Easytrieve app. programming guide says that 32767 is the max number of elements in an array. Is there any way I can override this number either through compile/link edit options or Option table settings? I have tried giving RMODE=ANY and AMODE=31 in compilation options. Still didnt work. Im using Easytrieve version 6.4.

please give me any thoughts or pointers on this.

Thanks,
deepu
deepu_1156
 
Posts: 6
Joined: Tue Jun 02, 2009 5:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: B021 - Array occurences limit

Postby dick scherrer » Tue Jun 02, 2009 6:27 am

Hello and welcome to the forum,

Is there any way I can override this number either through compile/link edit options or Option table settings?
Not that i'm aware of - hence the limit.

Depending on just what is happening in the process, you might consider creating a vsam file for this or splitting the table into 2 and process the "first" half or the other half depending on the ITEM. The entries would need to be in sequence for either the 2 table approach or the vsam approach.

If this is part of a db2 app, a temporary database table might also be used.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: B021 - Array occurences limit

Postby deepu_1156 » Tue Jun 02, 2009 8:06 am

Thanks a lot. We had around 50 EZT programs in which we had to increase array size to 99999. Currently, we are using Virtual files or re-writing in COBOL. I thought if we can tweak the array limit, we can reduce a lot of coding effort. Thanks again for the timely reply.
deepu_1156
 
Posts: 6
Joined: Tue Jun 02, 2009 5:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: B021 - Array occurences limit

Postby dick scherrer » Tue Jun 02, 2009 8:20 am

You're welcome - good luck :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post