# NOP 531 vs. Unix = Exitcode 2

**URL:** <https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766>\
**Category:** Forum\
**Tags:** EST, Entire-Systems-Management\
**Created:** [April 11, 2011, 8:25pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766 "2011-04-11T20:25:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holger\_Henn](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/holger_henn/32/254_2.png) [@Holger\_Henn](https://techcommunity.softwareag.com/u/Holger_Henn)\
**Post date:** [April 11, 2011, 8:25pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/1 "2011-04-11T20:25:34Z")

</div>

Hallo zusammen,

wir testen auf unserem Tesystem gerade NOP 531 und bekommen beim ausführen eines Scriptes auf Unix einen Exitcode 2. Ich habe den Sysout und die JCL mal angehangen…

Hat vielleicht jemand einen Tip für uns woran der Fehler liegen könnte? Unter NOP 521 laufen ähnliche Scripte fehlefrei… :shock:

Auf dem Server läuft die NPR-Version 2.4.1.04…

Grüße  
Holger  
[JCLohneTrigraph.txt](https://techcommunity.softwareag.com/uploads/short-url/qJFCql1uelRXt1YPXQNKuGIOGf9.txt) (3 KB)  
[SysoutohneTrigraph.txt](https://techcommunity.softwareag.com/uploads/short-url/a5BNux6Pu4bUvNviXfNphritBh1.txt) (1.43 KB)

---

<div class="post-metadata">

**Author:** ![Ulrich\_Fries](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ulrich_fries/32/38426_2.png) [@Ulrich\_Fries](https://techcommunity.softwareag.com/u/Ulrich_Fries)\
**Post date:** [April 11, 2011, 8:38pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/2 "2011-04-11T20:38:31Z")

</div>

Hallo Holger

zur Analyse empfehle ich die submittete JCL vom Server zu nehmen, dann passen auch die Auflösungen und/oder Zeilenzahlen laut SYSOUT

Kannst du die JCL evtl noch hochladen?

Zeile 99 und höher liegen bei meiner lokalen Speicherung dann jenseits des JCL-Endes 😢

---

<div class="post-metadata">

**Author:** ![Holger\_Henn](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/holger_henn/32/254_2.png) [@Holger\_Henn](https://techcommunity.softwareag.com/u/Holger_Henn)\
**Post date:** [April 12, 2011, 1:36pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/3 "2011-04-12T13:36:25Z")

</div>

Hallo Uli,

im Anhang noch mal die aktive JCL vom Server…

Grüße  
Holger  
[J090EDBS.sh.txt](https://techcommunity.softwareag.com/uploads/short-url/rC4ug8lsfjdtY2PnUHbga5XhJR.txt) (3.92 KB)

---

<div class="post-metadata">

**Author:** ![Ulrich\_Fries](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ulrich_fries/32/38426_2.png) [@Ulrich\_Fries](https://techcommunity.softwareag.com/u/Ulrich_Fries)\
**Post date:** [April 12, 2011, 2:01pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/4 "2011-04-12T14:01:04Z")

</div>

Hallo Holger

ich glaube bei der RC-Berechnung (Zeile 95) läuft schon was schief:

```auto
12.04.2011 09:01:28][sag@U9350229:~]
$ export RC1=0
[12.04.2011 09:12:28][sag@U9350229:~]
$ export RC4=1
[12.04.2011 09:12:34][sag@U9350229:~]
$ RC=`expr $RC1 + RC4`
expr: Argumente, die keine Zahlen sind
```

da fehlt das $ vor RC4

```auto
[12.04.2011 09:12:36][sag@U9350229:~]
$ RC=`expr $RC1 + $RC4`
[12.04.2011 09:15:29][sag@U9350229:~]
$ echo $RC
1
```

korriger das bitte mal und versuch es erneut …

---

<div class="post-metadata">

**Author:** ![Holger\_Henn](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/holger_henn/32/254_2.png) [@Holger\_Henn](https://techcommunity.softwareag.com/u/Holger_Henn)\
**Post date:** [April 12, 2011, 2:29pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/5 "2011-04-12T14:29:50Z")

</div>

Hallo Uli,

hier die JCL nach der Korrektur… leider bleibt der Fehler bestehen…

Grüße  
Holger  
[J090EDBS.sh.txt](https://techcommunity.softwareag.com/uploads/short-url/cRLdDiXsO7rNjIVtlaI6YPSpbB8.txt) (3.93 KB)

---

<div class="post-metadata">

**Author:** ![Ulrich\_Fries](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ulrich_fries/32/38426_2.png) [@Ulrich\_Fries](https://techcommunity.softwareag.com/u/Ulrich_Fries)\
**Post date:** [April 12, 2011, 3:24pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/6 "2011-04-12T15:24:13Z")

</div>

schau dir auch noch mal Zeile 83 an

```auto
zip -j $logsichverz/$(date "+%Y%m%d").logs.zip $protverz/*.log" >> $logfile 2>&1
```

das " nach .log ist meines Erachtens zu viel  
(mein Editor mit Syntaxhighlighting für Java-Scipt zeigt mir das komisch an)

 ![notepad_JCL.JPG](https://global.discourse-cdn.com/techcommunity/original/2X/5/56efb603c97711ce21c849cab0bcb1c4915c9eb7.jpeg)

---

<div class="post-metadata">

**Author:** ![Holger\_Henn](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/holger_henn/32/254_2.png) [@Holger\_Henn](https://techcommunity.softwareag.com/u/Holger_Henn)\
**Post date:** [April 12, 2011, 4:50pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/7 "2011-04-12T16:50:06Z")

</div>

Bingo, das war es… der Kollege aus dem Unix-Umfeld ist geständig… so was passiert halt mal beim kopieren 😉

Danke uns Servus nach Nürnberg 😃

---

<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:00pm UTC](https://techcommunity.softwareag.com/t/nop-531-vs-unix-exitcode-2/96766/8 "2021-04-02T15:00:04Z")

</div>

Closed on April 2, 2021, 3:00pm UTC


