ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaiu_5.4.0.1/rzaiurzaiu152.htm

81 lines
5.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Saving objects that have more than one name" />
<meta name="DC.Relation" scheme="URI" content="rzaiurzaiu148.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaiu152" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Saving objects that have more than one name</title>
</head>
<body id="rzaiu152"><a name="rzaiu152"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Saving objects that have more than one name</h1>
<div><p>You can give more than one name to objects on the server. An additional
name for an object is sometimes called a link. Some links, referred to as
hard links, point directly to the object. Other links are more like a nickname
for an object. The nickname does not point directly to the object. Instead,
you can think of the nickname as an object that contains the name of the original
object. This type of link is referred to as a soft link, or a symbolic link.</p>
<p>If you create links for objects, study the examples that follow to ensure
that your save strategy saves both the contents of objects and all their possible
names.</p>
<p>The following figure shows an example of a hard link: The root directory
contains UserDir. UserDir contains JCHDIR and DRHDIR. JCHDIR contains FILEA
that has a hard link to Object A. DRHDIR contains FILEB which also contains
a hard link to Object A.</p>
<div class="fignone" id="rzaiu152__lnk1"><a name="rzaiu152__lnk1"><!-- --></a><span class="figcap">Figure 1. An Object with Hard LinksExample</span><br /><img src="rzaiu504.gif" alt="Example of an object with&#xA;hard links" /><br /></div>
<p>You can save Object A with either of the following commands. For both
commands, you get the description of the specified object and the contents
of object .: </p>
<ul><li><samp class="codeph">SAV OBJ('/UserDir/JCHDIR/FILEA')</samp></li>
<li><samp class="codeph">SAV OBJ('/UserDir/DRHDIR/FILEB')</samp></li>
</ul>
<p> If you use only the first command (JCHDIR), you have not saved the fact
that FILEB is also named in the DRHDIR directory.</p>
<p>You can use any of the following commands to get the data once and both
names (hard links) for the file: </p>
<ul><li><samp class="codeph">SAV OBJ(('/UserDir'))</samp></li>
<li><samp class="codeph">SAV OBJ(('/UserDir/JCHDIR') ('/UserDir/DRHDIR'))</samp></li>
<li><samp class="codeph">SAV OBJ(('/UserDir/JCHDIR/FILEA') ('/UserDir/DRHDIR/FILEB'))</samp></li>
</ul>
<p>The following figure shows an example of a symbolic link: The root directory
contains QSYS.LIB and Customer. QSYS.LIB contains CUSTLIB.LIB. CUSTLIB.LIB
contains CUSTMAS.FILE. Customer is a symbolic link to CUSTMAS.FILE.</p>
<div class="fignone" id="rzaiu152__lnk2"><a name="rzaiu152__lnk2"><!-- --></a><span class="figcap">Figure 2. An Object with a Symbolic LinkExample</span><p><br /><img src="rzaiu503.gif" alt="Example of An Object&#xA;with a Symbolic Link" /><br /></p>
</div>
<p>Following are several commands you can use to save the CUSTMAS file (both
description and data): </p>
<ul><li><samp class="codeph">SAVLIB LIB(CUSTLIB)</samp></li>
<li><samp class="codeph">SAVOBJ OBJ(CUSTMAS) LIB(CUSTLIB)</samp></li>
<li><samp class="codeph">SAV ('/QSYS.LIB/CUSTLIB.LIB/CUSTMAS.FILE')</samp></li>
<li><samp class="codeph">SAV ('/QSYS.LIB/CUSTLIB.LIB')</samp></li>
</ul>
<p>None of these commands saves the fact that the CUSTMAS file has a <span class="q">"nickname"</span> of <samp class="codeph">customer</samp> in
the root directory.</p>
<p>If you specify SAV OBJ('/customer'), you save the fact that customer is
a nickname for the CUSTMAS file. You do not save the description of the CUSTMAS
file or its contents.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiurzaiu148.htm">Save file systems</a></div>
</div>
</div>
</body>
</html>