# Nat3009 Timeout Error

**URL:** <https://techcommunity.softwareag.com/t/nat3009-timeout-error/235867>\
**Category:** Forum\
**Tags:** Natural-Adabas, Nat3009\
**Created:** [January 7, 2021, 5:52am UTC](https://techcommunity.softwareag.com/t/nat3009-timeout-error/235867 "2021-01-07T05:52:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubhanshu\_Anand](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shubhanshu_anand/32/35332_2.png) [@Shubhanshu\_Anand](https://techcommunity.softwareag.com/u/Shubhanshu_Anand)\
**Post date:** [January 7, 2021, 5:52am UTC](https://techcommunity.softwareag.com/t/nat3009-timeout-error/235867/1 "2021-01-07T05:52:23Z")

</div>

Hello All,  
Below is the piece of code which I have used to update two views.  
Code runs most of the time but it has failed some of the time with Nat3009 error code.  
Please suggest why is it happening  
read file-view with key startng from #key-value  
if key ne #key-value  
escape bottom  
end-if  
perform get-record-isn  
perform update-table  
end-read

define subroutine get-record-isn  
find(1) file1 with key starting from #key1  
move \*isn to #isn  
end-find  
find(1) file2 with key starting from #key2  
move \*isn to #isn1  
end-find  
end-subroutine

define subroutine update-table  
if #isn ne 0  
get file1 #isn  
update some fields  
update  
end-if  
if #isn1 ne 0  
get file2 #isn  
update some fields  
update  
end-if  
end-transaction  
end-subroutine

---

<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 7, 2021, 5:53am UTC](https://techcommunity.softwareag.com/t/nat3009-timeout-error/235867/2 "2021-04-07T05:53:20Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
