Restoring Symbolic Links and Determining What a Symbolic Link is Pointing at
When restoring a symbolic link, the link will restore successfully, even though the target of the link might not exist. This document explains how to find the target of the symbolic link and what to do to re-establish the link.
Resolving the problem
If you restore a symbolic link, you are restoring only the fact that it points to the target object, not the target object itself. If the target object does not exist, the restore operation succeeds. However, if you try to use the symbolic link, you receive an error message, perhaps CPFA0A9 - Object not found. If you restore the target object or create it again, the link between SYMLNK object and the target object is re-established.
If you have the following:
and you restore the customer object (RST OBJ(’/customer’)), you are restoring only the fact that it points to the CUSTMAS file, not the file itself. If the CUSTMAS file does not exist, the restore operation succeeds. However, if you try to use the customer object, you receive an error message. If you restore the CUSTMAS file or create it again, the symbolic link between customer and the CUSTMAS file is re-established.
To determine what the symbolic link is pointing at, use the WRKLNK DETAIL(*EXTENDED) command on the SYMLNK object. After the Work with Object Links screen, select Option 12, Work with links, on the SYMLNK object. You will see the target in Content of Link.
|Operating System||IBM i 7.2|
|Operating System||IBM i 7.1|
|Operating System||IBM i 6.1|
More support for:
Software version: 5.4.0, 6.1.0, 7.1.0, 7.2.0
Operating system(s): IBM i
Reference #: N1014100
Modified date: 2013-01-28