16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

|<br />

|<br />

|<br />

Examples<br />

the hierarchical file system, such as a data set. The data set that the<br />

Network File <strong>System</strong> feature uses can be any type of MVS data set. For a<br />

partitioned data set, however, you specify a fully qualified name in all caps.<br />

For example:<br />

ln -e NOLL.PLIB.PGMA /u/noll/plib/pgma<br />

Restriction: Due to the NFS protocol limitation, -e does not create an<br />

external link on NFS. If you want to create an external link on NFS, see the<br />

topic on creating an external link for details in z/<strong>OS</strong> Network File <strong>System</strong><br />

Guide and Reference.<br />

External links can also be used to map an HFS file name to a PDS or<br />

PDSE member name for an executable load module. An example of how<br />

you would define the external link is:<br />

ln -e MYPGM /u/smorg/mylongpgmname<br />

If an application attempts to access /u/smorg/mylongpgmname as an<br />

executable file, the kernel will attempt to load MYPGM from the current<br />

MVS search order (Job Pack Queue, STEPLIB/JOBLIB, LPA, LINK LIST).<br />

The kernel services which behave this way for external links are:<br />

v exec() (all flavors)<br />

v spawn() (including _spawn2, spawnp, _spawnp2)<br />

v loadhfs which is used for all DLL processing and locales<br />

Note: For <strong>OS</strong>/390 releases prior to Release 6, an external link name<br />

cannot be specified as a shell command. Starting in Release 6, an<br />

external link can be used as a shell command to invoke a program<br />

in the current MVS search order.<br />

–f Gets rid of any conflicting pathnames without asking you for confirmation.<br />

–i Checks with you before getting rid of conflicting pathnames. You must not<br />

specify both –f and –i.<br />

–R Links files recursively. That is, you can link an entire hierarchy of<br />

subdirectories at once.<br />

–r Is identical to –R.<br />

–s Creates a symbolic link.<br />

Note, for a symbolic link,old refers to the file you want to create the link to<br />

(this file does not have to exist). new is the name of the symlink you are<br />

creating. For example, if you have a file called f1 and you want to create a<br />

symlink to it called my_sym, you input the following:<br />

ln -s f1 my_sym<br />

The locale settings for LC_COLLATE, LC_CTYPE, and LC_MESSAGES affect the<br />

program’s interpretation of what constitutes a “yes” answer when ln asks if you<br />

want to get rid of a conflicting pathname.<br />

If you define /u/user1/name1 as a symbolic link to /u/user1/name2, and then<br />

invoke name1:<br />

1. The shell will spawn name1.<br />

ln<br />

Chapter 2. Shell command descriptions 349

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!