I have problem with SYSOBJH

Hi all

I have a script for Linux but does not work


#!/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

Any error messages inside cmprint?

Yes, sorry

This Error


-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


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

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

So drop the parameter TRANSFER or try this instead:

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

excellent functioning correctly

Thanks Matthias