1752327 Members
5710 Online
108786 Solutions
New Discussion юеВ

Re: Connect:Direct error

 
joshi
New Member

Connect:Direct error

Hi All,

I am trying to send a file from a unix m/c to a remote m/c using NDM, nodes at both sides are configured. while executing script, I am getting erro as below:


******************************************************
* *
* Connect:Direct UNIX *
* *
*----------------------------------------------------*
* Copyright (c) 1992, 2005 Sterling Commerce, Inc. *
* Version 3.6.01 *
******************************************************

Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI.

Direct> **** Error returned...

XCMM005I Return Code: 8 Feedback: 0


Direct>
Connect:Direct CLI Terminated...

******************************************************
* *
* Connect:Direct UNIX *
* *
*----------------------------------------------------*
* Copyright (c) 1992, 2005 Sterling Commerce, Inc. *
* Version 3.6.01 *
******************************************************

Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI.

Direct> **** Error returned...

XCMM005I Return Code: 8 Feedback: 0


Direct>
Connect:Direct CLI Terminated...

******************************************************
* *
* Connect:Direct UNIX *
* *
*----------------------------------------------------*
* Copyright (c) 1992, 2005 Sterling Commerce, Inc. *
* Version 3.6.01 *
******************************************************

Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI.

Direct> **** Error returned...

XCMM005I Return Code: 8 Feedback: 0


Please provide the solution.
11 REPLIES 11
Andrew Young_2
Honored Contributor

Re: Connect:Direct error

Hi.

I'm not much of a Connect Direct expert, but I will try to help.

Are these machines new installations, or an installation that has recently stopped. I assume its the latter.

I suspect however that its a syntax error within the script.

Regards

Andrew Y
Si hoc legere scis, nimis eruditionis habes
joshi
New Member

Re: Connect:Direct error

there is new setup between two NDM nodes.
where could be syntax error, if you assume.

Thanks
Andrew Young_2
Honored Contributor

Re: Connect:Direct error

Hi.

Looking into this error it looks like a permissions error.

You may need to look at your logging on both nodes. The logs are usually kept in //work/. They are usually arranged by date.

Warning: CDirect debugging is can be frustrating.

Andrew Y
Si hoc legere scis, nimis eruditionis habes
joshi
New Member

Re: Connect:Direct error

Thanks Andrew for providing info...I am looking into that...
apart from that,
below is my NDM code:
# PROCESS : NDM2
# VERSION : 1.0
# CREATED DATE : 07/11/2002
# AUTHOR : MAREK GOTTESMAN
# SECURITY : COMPANY CONFIDENTIAL
#
# PROCESS DESCRIPTION
#
# THIS FUNCTION EXECUTES NDM TO SEND FILES TO OTHER MACHINES
# (NODES).
#
# THIS IS HOW YOU SEND FILES TO A MVS MACHINE
#
# NDM_NODE=NMD.PACBELLHH
# NDM_FROM_FILE=/appl/pmt/dconnect/marek/from.file
# NDM_TO_FILE=I.IC.TEST.FILE
# NDM_DATATYPE=text
# NDM_XLATE=yes
# NDM_DCB="disp=(rpl) dcb=(RECFM=F,LRECL=300,BLKSIZE=300) "
# NDM
#
# THIS IS HOW YOU SEND FILES TO A UNIX MACHINE
#
# NDM_NODE=soarpmt
# NDM_FROM_FILE=/appl/pmt/dconnect/marek/from.file
# NDM_TO_FILE=/appl/pmt/dconnect/marek/to.file
# NDM_DATATYPE=text
# NDM_XLATE=no
# NDM_DCB="disp=(rpl)"
# NDM
#
# CHANGE INFORMATION
#
# VER # PROGRAMMER DATE DESCRIPTION
#
# 1.0 MAREK GOTTESMAN 07/11/2002 INITIAL VERSION
#
#
#################################################################
NDM2 () {

if [[ $SCRIPT_DEBUG = "Y" ]]
then
set -x
fi
PAGER_FLAG="N"
if [[ $SCRIPT_PAGER = "Y" ]]
then
PAGER_FLAG="Y"
fi


if [[ -z $NDM_NODE ]]
then
print "NDM ERROR: NDM_NODE variable not set "
exit 1
fi

if [[ -z $NDM_FROM_FILE ]]
then
print "NDM ERROR: NDM_FROM_FILE variable not set "
exit 1
fi

if [[ -z $NDM_TO_FILE ]]
then
print "NDM ERROR: NDM_TO_FILE variable not set "
exit 1
fi

if [[ -z $NDM_DCB ]]
then
print "NDM ERROR: NDM_DCB variable not set "
exit 1
fi

if [[ -z $NDM_DATATYPE ]]
then
print "NDM ERROR: NDM_DATATYPE variable not set "
exit 1
fi

if [[ -z $NDM_XLATE ]]
then
print "NDM ERROR: NDM_XLATE variable not set "
exit 1
fi

if [[ ! -z $1 ]]
then
if [[ $1 = "PAGER" ]]
then
PAGER_FLAG="Y"
else
print "NDM ERROR: First arguement not set to PAGER "
exit 1
fi
fi

if [[ $PAGER_FLAG = "Y" ]]
then
FILE_EXISTS $NDM_FROM_FILE PAGER
else
FILE_EXISTS $NDM_FROM_FILE
fi

$NDM_PATH/bin/direct << EOJ
submit
ndm_send process snode=$NDM_NODE class=1
step1
copy from ( file=$NDM_FROM_FILE pnode
sysopts=":datatype=$NDM_DATATYPE:xlate=$NDM_XLATE:strip.blanks=no:" )
compress
to ( file=$NDM_TO_FILE
snode
$NDM_DCB )
step2
if ( step1 eq 0 ) then
run task pnode sysopts="touch ${NDM_FROM_FILE}.FIN "
run task snode sysopts="touch ${NDM_TO_FILE}.FIN "
else
run task snode sysopts="touch ${NDM_TO_FILE}.BAD "
run task pnode sysopts="touch ${NDM_FROM_FILE}.BAD "
eif
pend;
EOJ

}

when the file transfer is unsuccessful,it creates .BAD file. But it is not created.
Andrew Young_2
Honored Contributor

Re: Connect:Direct error

Hi Joshi

I don't even think it is running the script. Looking at the logs would be helpful.

Regards

Andrew Y
Si hoc legere scis, nimis eruditionis habes
joshi
New Member

Re: Connect:Direct error

Hi Andrew...
I think you are right...

in logs,I found as below
STAR=20070802 00:28:11|CCOD=8|RECI=XCMM|RECC=CAEV|MSGI=XCMM005I|MSGT=ndm_error_set(): rc=8 fdbk=0 msgid=XCMM005I stext=The submit command was not permitted for this user.
STAR=20070802 00:28:11|RECI=CXIT|RECC=CAEV|MSGT=CMGR exited. Pid=5736. Exitcode=1.

permission is not granted --

can you please provide some info over it...

Thanks again
joshi
New Member

Re: Connect:Direct error

can I give the required permission any way..

if yes,how?

Thanks
Andrew Young_2
Honored Contributor

Re: Connect:Direct error

Hi.

That is granted in the userfile.cfg file in the
//ndm/cfg// directory.

The format is

:cmd.submit=y:\

in the

:\ section.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Ash_123
Occasional Visitor

Re: Connect:Direct error

Hi Joshi,

Getting the same error....can you help me with this?

Would be really appreciated.