# Getting ERROR CODE 3077 while updating the file

**URL:** <https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Basics-on-Mainframes\
**Created:** [September 12, 2014, 2:03am UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511 "2014-09-12T02:03:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balasubramani\_yuvaraj](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Balasubramani\_yuvaraj](https://techcommunity.softwareag.com/u/Balasubramani_yuvaraj)\
**Post date:** [September 12, 2014, 2:03am UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511/1 "2014-09-12T02:03:31Z")

</div>

Hi Friends,

I am getting error code 3077 while updating one of the adabas file. Here, we are trying to update or replace one value with others say XXX with YYY. Not adding any new records. so its not going to take extra spaces

Still we done re-org the physical file corresponding to the logical file (update happening) to get additional space. But still we get the same error.

Have no clue how to address this issue.

Any valuable comments or suggestion will help me better.

Appreciate your time.

---

<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 12, 2014, 8:09am UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511/2 "2014-09-12T08:09:24Z")

</div>

Rsp 77 has a number of subcodes, which one are you receiving ?

---

<div class="post-metadata">

**Author:** ![Balasubramani\_yuvaraj](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Balasubramani\_yuvaraj](https://techcommunity.softwareag.com/u/Balasubramani_yuvaraj)\
**Post date:** [September 12, 2014, 8:13am UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511/3 "2014-09-12T08:13:47Z")

</div>

Hi wolfwang,

I am just getting the error message which don’t have suffice information.

MENU DRIVER DETECTED ERROR : 3077 IN PROGRAM : XXXNNNP AT LINE : 2515  
Not enough space for extent. DB/FNR/Subcode :1:/:2:/:3:.  
DATE : 11/09/14 TIME : 17:34:48 - TERMINATING NATURAL RUN

Can you advise us how to find the subcodes for this issue?

---

<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 12, 2014, 8:23am UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511/4 "2014-09-12T08:23:03Z")

</div>

If your change does slightly increase the compressed record then the record will not fit any longer into this data block and if the file has DSREUSE=OFF (you can change this with ADADBS DSREUSE function) a new block will be allocated. If DSREUSE=ON it will be checked if there is another DS block where the record fits, but this algorithm will not check the whole file. It just looks ahead some blocks and if there is no space it will also take a new block.

The RSP-77 can also happen because of no space in ASSO. Do you update a descriptor ? A simple change there can lead to a complete different layout of the index blocks.

Check with ADAREP whether ASSO or DATA is full.

To get space you might take some allocated space which is not yet used from other files (ADADBS DEALLOCATE or AOS function) or you increase the database (ADAFRM, ADADBS INCREASE - existing dataset or ADADBS ADD - new dataset).

---

<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 12, 2014, 8:32am UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511/5 "2014-09-12T08:32:07Z")

</div>

> [@Balasubramani yuvaraj](#):
>
> Can you advise us how to find the subcodes for this issue?

The LASTMSG command will show you the entire message, with all the variables replaced.  
As this appears to be a batch job add LASTMSG to your batch parameters before FIN.

---

<div class="post-metadata">

**Author:** ![Balasubramani\_yuvaraj](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Balasubramani\_yuvaraj](https://techcommunity.softwareag.com/u/Balasubramani_yuvaraj)\
**Post date:** [September 12, 2014, 8:39am UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511/6 "2014-09-12T08:39:20Z")

</div>

Hi Ursula,

I am not modifying any fields where its field will be increased. Just changing the value from XXX to YYY.

All ASSO (index) space had been used by the physical file (obviously by the mass updates to the logical file) and when the file needed to extent, no more free space was available, thus producing the 3077 error.

Actually my DBA have ‘reorged’ the physical file and in doing so, quite a large amount of index space has been recovered. This could be because records had split/grown over into multiple blocks (caused by the updates) and it was needing free space to allocate more blocks. The reorg basically puts records back into single blocks and in doing so, releases any unused blocks back to free space.

Anyways, thanks for your note.

Wolfgang winter,

Yes. LASTMSG will work and thanks for reminding me. After the work by my DBA, my job processing the file with updates without any issue.

But i should consider those points in future.

Thanks all for your help. Appreciate it.

---

<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:32pm UTC](https://techcommunity.softwareag.com/t/getting-error-code-3077-while-updating-the-file/178511/7 "2021-04-02T15:32:02Z")

</div>


