Why does a succesful transfer end with RC=3?

Document ID : KB000046198
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

Why do successful XCOM transfers initiated from Unix end with RC=3 instead of RC=0?

Environment:

XCOM for UNIX

Answer:

After installing XCOM on Unix the program xcomtcp has the so-called “Sticky Bits” SETUID and SETGID assigned. A ls-Command shows these bits as ‘s’:

/opt/CA/XCOM/bin> ls -la xcomtcp
-rwsr-sr-x 1 root root 1752097 18. Aug 11:31 xcomtcp

If the program is copied into this directory from another place then SETUID and SETGID are removed. Program xcomtcp still runs fine, but the Returncode displayed with command “echo $?” shows 3 instead of 0.

Additional Information:

If the bits SETUID and SETGUID are missing you can use this command to get them back. You need to logon as root to perform that command:

/opt/CA/XCOM/bin> chmod 6755 xcomtcp

 

Program xcomqm has only the bit SETGUID set. If this is lost by copying the file xcomqm you can use this command to get them back. You need to logon as root to perform that command:

/opt/CA/XCOM/bin> chmod 2755 xcomqm