Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Occurs Problem

Former Member
0 Likes
610

Hi,

What happens, if my records are more than the memory of 8K , if iam using OCCURS 0.

Thanks

MAnju

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
586

HI,

System itself assigns more memory automatically when it exceeds the limit with OCCURS 0 usage.

The objective of setting the value of an occurs for an internal table is a question of optimization. The following facts should be taken into account when making such decision.

1) The complete data area of a program is 64000 bytes.

2) The initial size declared is kept in roll area (quicker access to program)

3) Data entered that exceeds the initial size stores in the roll file (Slower access to program)

You should also analyze the expected volume and access rates before making the decision.

Hope this helps.

Manish

Message was edited by:

Manish Kumar

4 REPLIES 4
Read only

Former Member
0 Likes
586

Hi

Its not like that the memory will be problem , if iam using OCCURS 0.

Only initially it will allocate 8K bytes

When it will cross 8K,then it will allocate another 8K bytes like page in OS concept.

Regs

Manas Ranjan Panda

Message was edited by:

MANAS PANDA

Read only

Former Member
0 Likes
587

HI,

System itself assigns more memory automatically when it exceeds the limit with OCCURS 0 usage.

The objective of setting the value of an occurs for an internal table is a question of optimization. The following facts should be taken into account when making such decision.

1) The complete data area of a program is 64000 bytes.

2) The initial size declared is kept in roll area (quicker access to program)

3) Data entered that exceeds the initial size stores in the roll file (Slower access to program)

You should also analyze the expected volume and access rates before making the decision.

Hope this helps.

Manish

Message was edited by:

Manish Kumar

Read only

Former Member
0 Likes
586

it will increase the memory depending on the records

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
586

Using the OCCURS statement allocates memory for the interna table. When saying OCCURS 0, you are simply not allocating any memory, rather the system will increment the memory allocation as it is needed for the internal table.

Regards,

Rich Heilman