# Dealing utility return codes

**URL:** <https://techcommunity.softwareag.com/t/dealing-utility-return-codes/172744>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Utilities-on-Mainframes\
**Created:** [September 26, 2013, 5:04pm UTC](https://techcommunity.softwareag.com/t/dealing-utility-return-codes/172744 "2013-09-26T17:04:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antoni\_Matheu](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Antoni\_Matheu](https://techcommunity.softwareag.com/u/Antoni_Matheu)\
**Post date:** [September 26, 2013, 5:04pm UTC](https://techcommunity.softwareag.com/t/dealing-utility-return-codes/172744/1 "2013-09-26T17:04:33Z")

</div>

I have an adadbs executing

…  
ADADBS OPERCOM NOUSERABEND,LOCKU=412  
/\*  
// IF $RC GT 0 THEN  
// GOTO error1

The IF sentence try to goto to error1 in case file 412 is in use.

If I code  
ADADBS OPERCOM NOUSERABEND,LOCKU=412

I get  
A D A D B S: ERROR OCCURRED DURING EXECUTION:  
ERROR-072, UNEXPECTED NUCLEUS RESPONSE 64  
07- FILE IS USED (CANNOT BE LOCKED NOW)  
A D A D B S TERMINATED DUE TO ERROR CONDITION 2013-09-26 14:37:07  
11S55I LAST RETURN CODE WAS 0020

If I code  
ADADBS OPERCOM LOCKU=412

I get

A D A D B S: ERROR OCCURRED DURING EXECUTION:  
ERROR-072, UNEXPECTED NUCLEUS RESPONSE 64  
07- FILE IS USED (CANNOT BE LOCKED NOW)  
A D A D B S TERMINATED 2013-09-26 12:55:52  
12:55:53 ADAI23 00001 CSHEC412 USER ABEND CODE 034

And in BOTH cases the job cancels so the IF sentence has no oportunity to do its job

How can I tell the utility not to cancel the job but only end with a return code?

TIA

---

<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:29pm UTC](https://techcommunity.softwareag.com/t/dealing-utility-return-codes/172744/2 "2021-04-02T15:29:31Z")

</div>


