Run task fails with XSMG402I RC 1

Technote (troubleshooting)


Problem(Abstract)

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.

Rate this page:

(0 users)Average rating

Document information


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:

2013-04-17

Translate my page

Machine Translation

Content navigation