# I have problem with SYSOBJH

**URL:** <https://techcommunity.softwareag.com/t/i-have-problem-with-sysobjh/97293>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-Installation-and-Setup-on-Open-Systems\
**Created:** [June 1, 2011, 4:33am UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-sysobjh/97293 "2011-06-01T04:33:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angel\_Mendoza\_O1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/angel_mendoza_o1/32/191_2.png) [@Angel\_Mendoza\_O1](https://techcommunity.softwareag.com/u/Angel_Mendoza_O1)\
**Post date:** [June 1, 2011, 4:33am UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-sysobjh/97293/1 "2011-06-01T04:33:34Z")

</div>

Hi all

I have a script for Linux but does not work

```auto

#!/usr/bin/bash
#
cmsynin=/tmp/mysynin
cmobjin=/tmp/myobjin
cmprint=/tmp/mycmprint
cmprint2=/tmp/mycmprint2
report=/tmp/myreport
export WRKF1=/tmp/myworkfile01  
export WRKF3=/tmp/myworkfile03   
export WRKF4=/tmp/myworkfile04   
prog=SACOBF-1
lib=SISVE

echo -e "SYSOBJH\nFIN" > $cmsynin
echo -e "UNLOAD $prog LIB $lib OBJTYPE N SCKIND S % \nWHERE TRANSFER \n." > $cmobjin
natural batchmode parm=SISVE cc=on cmsynin=$cmsynin cmobjin=$cmobjin cmprint=$cmprint

```

Anyone have a script for SYSOBJH

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [June 1, 2011, 3:51pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-sysobjh/97293/2 "2011-06-01T15:51:30Z")

</div>

Any error messages inside cmprint?

---

<div class="post-metadata">

**Author:** ![Angel\_Mendoza\_O1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/angel_mendoza_o1/32/191_2.png) [@Angel\_Mendoza\_O1](https://techcommunity.softwareag.com/u/Angel_Mendoza_O1)\
**Post date:** [June 1, 2011, 8:32pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-sysobjh/97293/3 "2011-06-01T20:32:40Z")

</div>

Yes, sorry

This Error

```auto

-bash-3.1$ sh BackSysObjh1.sh

        Natural Startup Error: 42

        Batch mode driver error.

Parameter CMPRINT not set.
Hubo un error durante la ejecucion del adamup file=0

```

CMPRINT

```auto

DATA UNLOAD SACOBF-1 LIB SISVE OBJTYPE N SCKIND S %
DATA WHERE TRANSFER
^LPage 1

                                                                        11-05-3
1 18:25:08
SYSOBJH: Error occurred during direct command processing!

Error: 1008

Invalid Work file 1 name (extension must not be 'SAG' or blank).

Error detected in OINCHWKF.
SYSOBJH terminates with condition code 40

```

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [June 10, 2011, 12:56pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-sysobjh/97293/4 "2011-06-10T12:56:00Z")

</div>

Seems like Natural wants an extension for the workfiles - if you choose TRANSFER Format.

So drop the parameter TRANSFER or try this instead:

```auto
export WRKF1=/tmp/myworkfile.w01  
export WRKF3=/tmp/myworkfile.w03    
export WRKF4=/tmp/myworkfile.w04
```

---

<div class="post-metadata">

**Author:** ![Angel\_Mendoza\_O1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/angel_mendoza_o1/32/191_2.png) [@Angel\_Mendoza\_O1](https://techcommunity.softwareag.com/u/Angel_Mendoza_O1)\
**Post date:** [July 11, 2011, 3:21am UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-sysobjh/97293/5 "2011-07-11T03:21:28Z")

</div>

excellent functioning correctly

Thanks Matthias

---

<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/i-have-problem-with-sysobjh/97293/6 "2021-04-02T15:00:20Z")

</div>


