Problems with teminate sentence

Hello
I have a problem with the terminate sentence using Natural V 5.1.1 P1 13 for Unix.

Program in STEPLIB LIBRARY:
TERMINATE 36 .

Script:
#!/bin/sh
echo “\n>” Init

************************************************************

$NATBATCH parm=$NATPARM mainpr=10 etid=’ ’ << FINAL > /dev/null
DLOGON STEPLIB
TER36
FI
FIN
FINAL
echo “$? Return code fron Natural”

Result:

Init
0 Return code fron Natural

Then the rc 36 is lost
Any ideas would be appreciated
Many thanks in advance

Teo

2 questions.

  1. What is the value of $NATBATCH
  2. What does FI do that FIN does not do? Is FI a program?

James

Hi James

$NATBATCH is natural

FI is a mistake from me, without FI the result is the same