# Return code of jcl submitted by natrje

**URL:** <https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [February 26, 2007, 4:06pm UTC](https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010 "2007-02-26T16:06:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![florian\_gaulier](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@florian\_gaulier](https://techcommunity.softwareag.com/u/florian_gaulier)\
**Post date:** [February 26, 2007, 4:06pm UTC](https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010/1 "2007-02-26T16:06:24Z")

</div>

Hello,  
i want to know if there’s a way to catch  
the return code of a jcl submitted by natrje.  
I want to have on my natural interface the return code  
provided by SDSF Output for my users.

I use  
“CALL ‘NATRJE’ CARTE-G COMPTE FLAG RETHEX”  
in my program.  
My jcl uncatalog, catalog files and lauch the program.

I have heard about ULSRRJE …  
I know the job name.

Excuse me for my english, i’m french 😉

Regards,

Florian GAULIER  
GFI

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [February 26, 2007, 9:56pm UTC](https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010/2 "2007-02-26T21:56:01Z")

</div>

This is not available with native Natural. You need an add-on product, Entire System Server.

---

<div class="post-metadata">

**Author:** ![wkk](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wkk](https://techcommunity.softwareag.com/u/wkk)\
**Post date:** [March 6, 2007, 10:12pm UTC](https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010/3 "2007-03-06T22:12:41Z")

</div>

Using Entire System Server, you may doing this job as follows:

PROCESS SUBMIT USING NODE = nnn  
, DSNAME = ‘datasetname’  
, MEMBER = ‘mebername’  
GIVING ERROR-CODE ERROR-TEXT JOB-NUMBER JOB-ID

PROCESS SUBMIT USING NODE = nnn  
, DSNAME = ‘datasetname’  
, MEMBER = ‘membername’  
, FUNCTION = ‘CLOSE’  
GIVING ERROR-CODE ERROR-TEXT JOB-NUMBER JOB-ID

The field JOB-NUMBER contains now the JES job-number, and at a later  
point of time, you may read the job from JES queue with

FIND READ-SPOOL WITH JOB-NUMBER= xxxx  
AND NODE = nnn  
AND TYPE = ‘CC’  
AND DATA-SET = 1  
PRINT RECORD  
END-FIND

with this coding you may read the completion-code of a given job.

---

<div class="post-metadata">

**Author:** ![florian\_gaulier](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@florian\_gaulier](https://techcommunity.softwareag.com/u/florian_gaulier)\
**Post date:** [March 28, 2007, 4:14pm UTC](https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010/4 "2007-03-28T16:14:19Z")

</div>

Thanks for all your reply.  
I try as soon as possible.

---

<div class="post-metadata">

**Author:** ![florian\_gaulier](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@florian\_gaulier](https://techcommunity.softwareag.com/u/florian_gaulier)\
**Post date:** [May 24, 2007, 6:05pm UTC](https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010/5 "2007-05-24T18:05:51Z")

</div>

Hi, i find fex time to do this.  
So i use  
"FIND SPOOL-QUEUE-LDA WITH  
NODE EQ 999  
AND JOB-NAME EQ

---

<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:41pm UTC](https://techcommunity.softwareag.com/t/return-code-of-jcl-submitted-by-natrje/62010/6 "2021-04-02T14:41:05Z")

</div>


