# NatRJE Issue

**URL:** <https://techcommunity.softwareag.com/t/natrje-issue/232458>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [August 21, 2020, 7:01pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458 "2020-08-21T19:01:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubhanshu\_Anand](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shubhanshu_anand/32/35332_2.png) [@Shubhanshu\_Anand](https://techcommunity.softwareag.com/u/Shubhanshu_Anand)\
**Post date:** [August 21, 2020, 7:01pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458/1 "2020-08-21T19:01:38Z")

</div>

Hello All,  
I am new to NatRJE. I’m getting HexRET = ‘000C’ i.e Invalid number of JCL cards.  
01 #job-line (a80/1:80)  
MOVE '//XXABCXXX JOB ‘SAP’,‘XYZ’,CLSS=X,MSGCLASS=X TO #JOB-LINE(1)  
MOVE ‘//STEP01 EXEC NATT’ TO #JOB-LINE(2)  
MOVE ‘//CMPRINT DD SYSOUT=\*’ TO #JOB-LINE(3)  
MOVE ‘/CMWKF01 DD DSN=ABC.ZZ, DISP=SHR’ TO #JOB-LINE(4)  
MOVE ‘//CMYSYNIN DD _’ TO #JOB-LINE(5)  
MOVE ‘LOGON XXXXXXX’ TO #JOB-LINE(6)  
MOVE ‘XXXXXXXX’ TO #JOB-LINE(7)  
MOVE '//_’ TO #JOB-LINE(8)

CALL ‘NATRJE’ #JOB-LINE(1:8) , 8, ‘L’, #error

Please suggest where i’m going wrong…

---

<div class="post-metadata">

**Author:** ![wolfgang.winter](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wolfgang.winter/32/17954_2.png) [@wolfgang.winter](https://techcommunity.softwareag.com/u/wolfgang.winter)\
**Post date:** [August 21, 2020, 7:25pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458/2 "2020-08-21T19:25:32Z")

</div>

Don’t pass an array as the first parameter, just #JOB-LINE(1)

---

<div class="post-metadata">

**Author:** ![Shubhanshu\_Anand](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shubhanshu_anand/32/35332_2.png) [@Shubhanshu\_Anand](https://techcommunity.softwareag.com/u/Shubhanshu_Anand)\
**Post date:** [August 21, 2020, 7:37pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458/3 "2020-08-21T19:37:53Z")

</div>

I’m still getting ‘000C’ as error

---

<div class="post-metadata">

**Author:** ![wolfgang.winter](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wolfgang.winter/32/17954_2.png) [@wolfgang.winter](https://techcommunity.softwareag.com/u/wolfgang.winter)\
**Post date:** [August 21, 2020, 7:44pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458/4 "2020-08-21T19:44:38Z")

</div>

Are you really passing a literal 8 as the 2nd parameter ?

That needs to be a B4 field.

---

<div class="post-metadata">

**Author:** ![Shubhanshu\_Anand](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shubhanshu_anand/32/35332_2.png) [@Shubhanshu\_Anand](https://techcommunity.softwareag.com/u/Shubhanshu_Anand)\
**Post date:** [August 21, 2020, 7:56pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458/5 "2020-08-21T19:56:56Z")

</div>

Thanks alot it worked

---

<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:** [August 24, 2020, 6:37pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458/6 "2020-08-24T18:37:43Z")

</div>

For legibility, ease of use, and ease of maintenance, I suggest some restructuring. Also, use tags to make the JCL stream a bit more dynamic.

```auto
DEFINE DATA LOCAL
1 #MJ (I4) CONST <8>
1 #JCL (A80/#MJ) INIT
  <"//XXABCXXX JOB 'SAP','XYZ',CLSS=X,MSGCLASS=X"
  ,"//STEP01 EXEC NATT"
  ,"//CMPRINT DD SYSOUT=*"
  ,"//CMWKF01 DD DSN=ABC.$PROGRAM$,DISP=SHR"
  ,"//CMSYNIN DD *"
  ,"LOGON $LIBRARY$"
  ,"$PROGRAM$"
  ,"//"
  >
1 #LIB (A8)
1 #PGM (A8)
1 #C (B4)
END-DEFINE
FORMAT LS=90
INPUT (AD=T)
      #LIB
      #PGM
EXAMINE #JCL (*) FOR "$LIBRARY$" REPLACE #LIB
EXAMINE #JCL (*) FOR "$PROGRAM$" REPLACE #PGM
ASSIGN #C = #MJ
DISPLAY #JCL (*)
CALL "NATRJE" #JCL (1)
              #C
              "L"
END

```

---

<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:45pm UTC](https://techcommunity.softwareag.com/t/natrje-issue/232458/7 "2021-04-02T15:45:05Z")

</div>


