Run task fails with XSMG402I RC 1
Run task on UNIX to move a file is failing with XSMG402I RC 1
XSMG402I A user RUNTASK step completed. RC 1
Invalid permissions for one of the sub directories in the destination file path
Diagnosing the problem
To find out what is the error returned by the mv command redirect the output to a log file, for example:
RT1 task pnode (pgm=unix)
sysopts="mv '/home/user/filein' '/home/user/testdir/fileout' > /tmp/cdlog 2>&1"
The /tmp/cdlog file should show why the mv command is failing. In this case the error was 'Permission denied'
Resolving the problem
Correct the permissions on the destination file path.
More support for:
Sterling Connect:Direct for UNIX
Software version: 3.8, 4.0, 4.1
Operating system(s): AIX, HP-UX, Linux, Solaris
Reference #: 1634633
Modified date: 17 April 2013
Translate this page: