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.