Troubleshooting
Problem
Run task on UNIX to move a file is failing with XSMG402I RC 1
Symptom
XSMG402I A user RUNTASK step completed. RC 1
Cause
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.
[{"Product":{"code":"SSKTYY","label":"IBM Sterling Connect:Direct for UNIX"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"4.1;4.0;3.8","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Was this topic helpful?
Document Information
Modified date:
24 July 2020
UID
swg21634633