Return code 3 when executing xcomtcp

Document ID : KB000114143
Last Modified Date : 14/09/2018
Show Technical Document Details
Issue:
We have a new installed XCOM on Linux and from there using command xcomtcp to send files to IBM mainframe. xcomtcp returns Return Code 3 and not 0 even if everything seems to look OK.

[ingil:root:/opt/CA/XCOM/config:] xcomqm -r xcomqm: CA XCOM Data Transport r11.6 16083 SP01 64bit 
 
Mainframe side: XCOM remote system ping: XCOMU0882I PING INFO FOR mmmmm 
XCOMU0882I RELEASE= v12.0 SP00 GEN LEVEL 1405 

And now the xcomtcp -command that gives RC=3
$ xcomtcp -c1 -f cfg/send_file.cnf USERID=removed PASSWORD=removed REMOTE_FILE=TESTI LOCAL_FILE=testi.xx FILE_OPTION=REPLACE CODE_FLAG=EBCDIC LOCAL_NOTIFY=xxxxxx NOTIFYL=WRITE

2018/09/13 14:39:03 TID=000049 [testi.xx --> TESTI at mmmmm]
XCOMU0029I Locally initiated transfer started. 2018/09/13 14:39:04 TID=000049 XCOMU0011I Transfer ended; 1 blocks (23 bytes) transmitted in 1 seconds (23 bytes/second)

$ echo $? 3 ========================
Environment:
XCOM r11.6 for Linux, XCOM r12 for z/OS
Resolution:
The RC of 3 per the errno.h indicates "NO SUCH PROCESS".

Make sure that the permission for "xcomtcp" is set correctly. It has to be owned by root and the group must be xcomadm: -r-sr-sr-x. 1 root xcomadm
If you don't have the correct permission for xcomtcp you can get the RC 3.