# Need to Hold the record

**URL:** <https://techcommunity.softwareag.com/t/need-to-hold-the-record/79543>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples\
**Created:** [November 20, 2008, 6:59pm UTC](https://techcommunity.softwareag.com/t/need-to-hold-the-record/79543 "2008-11-20T18:59:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arun2](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Arun2](https://techcommunity.softwareag.com/u/Arun2)\
**Post date:** [November 20, 2008, 6:59pm UTC](https://techcommunity.softwareag.com/t/need-to-hold-the-record/79543/1 "2008-11-20T18:59:08Z")

</div>

Hi ,

I need to hold a record and try to access the same record from another program to get NAT3145.I used GET command to hold the record by one program and when i tried to update the records by another program its working fine. Can some help me on this?

Thanks,  
Arun

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [November 20, 2008, 10:48pm UTC](https://techcommunity.softwareag.com/t/need-to-hold-the-record/79543/2 "2008-11-20T22:48:29Z")

</div>

Arun,

You can stay in your READ loop longer by rolling out while you have the record on hold.

Define #SECONDS to be (I2) in this example.

#SECONDS := 30  
G1. GET MY-FILE #ISN  
CALL ‘CMROLL’ #SECONDS  
UPDATE (G1.)  
END TRANSACTION

Meanwhile, run the same program from another session while this is rolled out. You will assuredly get the NAT3145 condition.

---

<div class="post-metadata">

**Author:** ![Arun2](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Arun2](https://techcommunity.softwareag.com/u/Arun2)\
**Post date:** [November 21, 2008, 7:48pm UTC](https://techcommunity.softwareag.com/t/need-to-hold-the-record/79543/3 "2008-11-21T19:48:06Z")

</div>

Thanks Brian! It is working 😃

---

<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:51pm UTC](https://techcommunity.softwareag.com/t/need-to-hold-the-record/79543/4 "2021-04-02T14:51:10Z")

</div>


