# NATRJE and return code 04

**URL:** <https://techcommunity.softwareag.com/t/natrje-and-return-code-04/93817>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [June 10, 2010, 7:38pm UTC](https://techcommunity.softwareag.com/t/natrje-and-return-code-04/93817 "2010-06-10T19:38:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jxc2](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jxc2](https://techcommunity.softwareag.com/u/jxc2)\
**Post date:** [June 10, 2010, 7:38pm UTC](https://techcommunity.softwareag.com/t/natrje-and-return-code-04/93817/1 "2010-06-10T19:38:46Z")

</div>

At Penn State we use NATRJE to submit batch jobs that generate emails. When too many jobs are submitted at the same time we get a response code 04 - NATRJE utility not available. Has anyone come up with a solution to this problem other than using RETRY logic? We do not have access to user exit routines so this is not an option for us.

Thank you,  
Jean Chamberlin

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [August 11, 2010, 1:23pm UTC](https://techcommunity.softwareag.com/t/natrje-and-return-code-04/93817/2 "2010-08-11T13:23:45Z")

</div>

Hi,

I hope I am not late, but you can try this:

```auto

define call-natrje
repeat until ( #rc ne 4 and #rc ne 8) or #tries > 5
  #rc := 0
  add 1 to #tries
  call 'natrje' #job-cards #count #last #rc
  if ( #rc =4 or = 8 or = 1024 )
    call 'cmroll' #wait
  end-if
end-repeat
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 2, 2021, 2:58pm UTC](https://techcommunity.softwareag.com/t/natrje-and-return-code-04/93817/3 "2021-04-02T14:58:36Z")

</div>


