# Buffer Pool

**URL:** <https://techcommunity.softwareag.com/t/buffer-pool/91280>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [September 18, 2009, 10:07am UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280 "2009-09-18T10:07:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Webb1](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Stephen\_Webb1](https://techcommunity.softwareag.com/u/Stephen_Webb1)\
**Post date:** [September 18, 2009, 10:07am UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/1 "2009-09-18T10:07:46Z")

</div>

When we implement modules from our development environment to our test environment we use a home grown application.

This uses SYSMAIN to copy the source from one library to the other, then catalogs the source in the target library.

It appears that when we implement a map and a program, that the map is not removed from the buffer pool when it is catalogued.

Therefore, if for example fields have been added to the map, the result is a Nat 936, if the program is executed.

This can be cleared by stowing both modules or deleting the map from the buffer pool.

Is this a know problem?

We are wondering if we need to include a delete of the module from the buffer pool as a step in our implementation.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [September 18, 2009, 12:16pm UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/2 "2009-09-18T12:16:48Z")

</div>

Hi Stephen,

Are you running with two different buffer pools? SYSMAIN/catalog process runs with another buffer pool than the process that executes your application?

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 18, 2009, 12:24pm UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/3 "2009-09-18T12:24:40Z")

</div>

Does the migration application ensure that the map is cataloged first? Otherwise, the program will still contain the old parameter list.

---

<div class="post-metadata">

**Author:** ![Stephen\_Webb1](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Stephen\_Webb1](https://techcommunity.softwareag.com/u/Stephen_Webb1)\
**Post date:** [September 22, 2009, 11:19am UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/4 "2009-09-22T11:19:37Z")

</div>

It is the same buffer pool.

The map is catalogued first.

I have also had a text module remain in the buffer pool. Used for JCL in on-line submission.

Is this a bug with AIX?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [September 22, 2009, 12:56pm UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/5 "2009-09-22T12:56:57Z")

</div>

Hi Stephen,

I think something in your environment is not as you believe. Natural text objects are not loaded in the buffer pool.

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [September 22, 2009, 3:46pm UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/6 "2009-09-22T15:46:06Z")

</div>

Hi Stephen;

Just to recap, and clarify in my own mind, what you have said.

Step 1) SYSMAIN MAP-1 and PROG-1 to new library; STOW map, then program

Step 2) Modify MAP-1 to create MAP-2; SAVE and CAT MAP-2

Step 3) Modify PROG-1 to create PROG-2; SAVE and CAT PROG-2

Step 4) Test by “executing” (your word) PROG-2

You said that if you STOW MAP-2 and PROG-2 everything works fine.

Question. In steps 2) and 3) did you SAVE and CAT both the MAP and the program? If, for example, you only SAVE’d the program; then tried to test by “executing” (again, your word) PROG-2, you would get the 936. Then, if you STOW’ed (SAVE and CAT) PROG-2, it would work just fine.

Try doing a LIST DIR of the program and the Map. See if the process you followed indeed results in both the program and the Map showing up as -2, rather than -1 (the dates and times should tell you this).

steve

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [September 22, 2009, 3:47pm UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/7 "2009-09-22T15:47:19Z")

</div>

Hi Stephen;

Just to recap, and clarify in my own mind, what you have said.

Step 1) SYSMAIN MAP-1 and PROG-1 to new library; STOW map, then program

Step 2) Modify MAP-1 to create MAP-2; SAVE and CAT MAP-2

Step 3) Modify PROG-1 to create PROG-2; SAVE and CAT PROG-2

Step 4) Test by “executing” (your word) PROG-2

You said that if you STOW MAP-2 and PROG-2 everything works fine.

Question. In steps 2) and 3) did you SAVE and CAT both the MAP and the program? If, for example, you only SAVE’d the program; then tried to test by “executing” (again, your word) PROG-2, you would get the 936. Then, if you STOW’ed (SAVE and CAT) PROG-2, it would work just fine.

Try doing a LIST DIR of the program and the Map. See if the process you followed indeed results in both the program and the Map showing up as -2, rather than -1 (the dates and times should tell you this).

steve

---

<div class="post-metadata">

**Author:** ![Stephen\_Webb1](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Stephen\_Webb1](https://techcommunity.softwareag.com/u/Stephen_Webb1)\
**Post date:** [September 24, 2009, 10:39am UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/8 "2009-09-24T10:39:12Z")

</div>

Case 1. The map and program.

Step 1.

Map source copied from first library to second library using SYSMAIN.

Program source copied from first library to second library using SYSMAIN.

Step 2.

Map catalogued in second library.

Program catalogued in second library.

Step 3.

Invoke program. Fails with a Nat 936.

Step 4.

Delete map from buffer pool, using NATBPMON.

Step 5.

Invoke program. Displays map.

Step 4, can be a stow of the map and program as well.

Either way until step 4 is done, the program is not invoking the correct copy of the map.

Case 2.  
A text module which contains JCL that is used by NATRJE.

Step 1.

Copy the text module from first library to second library.

Step 2.  
Submit the JCL using NATRJE.

The JCL as executed is the previous version.

Step 3.  
Delete text module from buffer pool using NATBPMON.

Step 4.  
Submit the JCL using NATRJE.

The JCL executed is the correct version.

Is this due to the way SAG setup our buffer pool, or is it a bug?

Should we delete the appropriate entries from the buffer pool as part of out automated transfer process?

So far, only cases 1 and 2 appear to give us any problems.

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 24, 2009, 11:49am UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/9 "2009-09-24T11:49:53Z")

</div>

If you’re describing your migration procedure to the production environment, then you should probably add the purge of the BP to it.

For development environments, consider setting BPSFI=OFF (Buffer Pool Search First Indicator).

---

<div class="post-metadata">

**Author:** ![Stephen\_Webb1](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Stephen\_Webb1](https://techcommunity.softwareag.com/u/Stephen_Webb1)\
**Post date:** [September 25, 2009, 10:23am UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/10 "2009-09-25T10:23:59Z")

</div>

Thanks, we will include a step to delete the appropriate entries from the buffer pool.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/buffer-pool/91280/11 "2021-04-02T14:57:32Z")

</div>


