Creating an external link
An external link is a special type of symbolic link, a file that contains the name of an object outside of the z/OS UNIX file system. Using an external link, you associate that object with a path name. For example, setlocale() searches for locale object files in the z/OS UNIX file system, but if you want to keep your locale object files in a partitioned data set, you can create an external link in the file system that points to the PDS. This will improve performance by shortening the search made by setlocale().
A file can be an external link to a sequential data set, a PDS, or a PDS member. When a file is an external link to an MVS™ data set, an NFS client user can use the path name to access the data set. To use the path name to edit, browse, or display the attributes of the data set that is the target of an external link, you must be using the Network File System feature. Working in a shell, you can create (ln) an external link, display information (ls) about the link (not the target of the link), or delete (rm) the link.
- NFS client: You can create external links as files within the z/OS UNIX file system and then access these files as an NFS client user to access the MVS data sets that they point to.
- A program using the exec() family of functions, the BPX1EXC (exec) callable service, the BPX1LOD (loadhfs) callable service, or the BPX1SPN (spawn) callable service can access an MVS data set using an external link. This capability includes external link programs that are invoked as commands in the shell.
- Dynamic link libraries: The external link name used on a DLL load is a member name. For example,
you would code a link as:
where IMWYW WS is the member name that is linked to the file wwwss.so.
ln -e IMWYWWS /usr/lpp/internet/bin/wwwss.so
In Figure 1, /u/brooks/plib/pgm1 is the name of the new file that contains the reference to the partitioned data set BROOKS.PLIB.PGM1.
ln -e old new
Due to NFS protocol limitations, -e does not create an external link on NFS. For more information on creating an external link on NFS, see creating an external link in z/OS Network File System Guide and Reference.