# ADABAS File data reverteing back to original after session Logoff

**URL:** <https://techcommunity.softwareag.com/t/adabas-file-data-reverteing-back-to-original-after-session-logoff/189857>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [July 25, 2016, 5:24pm UTC](https://techcommunity.softwareag.com/t/adabas-file-data-reverteing-back-to-original-after-session-logoff/189857 "2016-07-25T17:24:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prem\_Burla](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@Prem\_Burla](https://techcommunity.softwareag.com/u/Prem_Burla)\
**Post date:** [July 25, 2016, 5:24pm UTC](https://techcommunity.softwareag.com/t/adabas-file-data-reverteing-back-to-original-after-session-logoff/189857/1 "2016-07-25T17:24:16Z")

</div>

I am able to update ADABAS File successfully using Natural program, but after logging off and logging back to Natural session, all changes are reverted back.

FIND HLP-TABLE-F-V1 WITH HELP-FOR-MAPID = ‘PMMPCCC’  
IF HELP-FOR-MAPID = ‘PMMPCCC’  
ASSIGN #I := 28  
IF HELP-CURSOR-LOC(#I) = 014020  
ASSIGN HELP-PROGID(#I) := ’ ’  
UPDATE(0120)  
DISPLAY ‘UPDATED SUCCESSFULLY’  
END-IF  
END-IF  
END-FIND

This is the piece of code used to update the filed with spaces.  
Can anyone help me out why the changes are reverted back after logoff from Natural session.

---

<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:** [July 25, 2016, 5:31pm UTC](https://techcommunity.softwareag.com/t/adabas-file-data-reverteing-back-to-original-after-session-logoff/189857/2 "2016-07-25T17:31:46Z")

</div>

You’re missing an END TRANSACTION statement that could be placed right before the END statement.

You are performing the UPDATE but without the ET, your update is being backed out.

---

<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:** [July 26, 2016, 1:14pm UTC](https://techcommunity.softwareag.com/t/adabas-file-data-reverteing-back-to-original-after-session-logoff/189857/3 "2016-07-26T13:14:14Z")

</div>

Depending on the setting of the ETEOP profile parameter, though.

ETEOP=ON will cause an implicit ET at the end of the program.

---

<div class="post-metadata">

**Author:** ![Prem\_Burla](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@Prem\_Burla](https://techcommunity.softwareag.com/u/Prem_Burla)\
**Post date:** [July 26, 2016, 3:04pm UTC](https://techcommunity.softwareag.com/t/adabas-file-data-reverteing-back-to-original-after-session-logoff/189857/4 "2016-07-26T15:04:20Z")

</div>

Thanks Brian for the solution, it worked.

Thanks Wolf, I checked the parm and its OFF. Yes, for our Development environment we updated this to avoid including ET implicitly for Natural programs.

---

<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, 3:36pm UTC](https://techcommunity.softwareag.com/t/adabas-file-data-reverteing-back-to-original-after-session-logoff/189857/5 "2021-04-02T15:36:36Z")

</div>


