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

85 lines
5.2 KiB
HTML

<?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="Using the Save (SAV) command" />
<meta name="DC.Relation" scheme="URI" content="rzaiurzaiu148.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/ifscloseexit.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/ifsopenexit.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaiurzaiu004.htm" />
<meta name="DC.Relation" scheme="URI" content="../ifs/rzaaxkickoff.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaiurzaiu153.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="rzaiu150" />
<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>Using the Save (SAV) command</title>
</head>
<body id="rzaiu150"><a name="rzaiu150"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Using the Save (SAV) command</h1>
<div><p>The <a href="../cl/sav.htm">SAV</a>command allows you
to save the following data:</p>
<ul><li>A specific object</li>
<li>A directory or subdirectory</li>
<li>An entire file system</li>
<li>Objects that meet search value</li>
</ul>
<p>You can also save the items in this list by using the <a href="../apis/QsrSave.htm">QsrSave API</a>. For more information, refer
to the <a href="../apifinder/finder.htm">System API Reference</a>.</p>
<div class="p">The Objects (OBJ) parameter on the SAV command supports the use of wildcard
characters and the directory hierarchy. When you have a specific subset of
similar objects within a directory subtree that you want to save, you can
use the Name pattern (PATTERN) parameter to further define the objects that
are identified in the (OBJ) parameter. For example, you could have a directory
'/MyDir' that contains 100 subdirectories, Dir1 through Dir100, that each
contain 100 .jpg files, Photo1.jpg through Photo100.jpg, with corresponding
backup files, Photo1.bkp through Photo100.bkp. To save all of the .jpg files
in '/MyDir', but omit the backup files, you could issue the following command: <pre>SAV OBJ(('/MyDir')) PATTERN(('*.bkp' *OMIT)) </pre>
</div>
<p>When you use the SAV command to save the current directory <span class="uicontrol">SAV
OBJ('*')</span> and the current directory is empty (it has no files or
subdirectories), the server does not save anything. The command does not save
the one *DIR object that represents the current directory. However, when you
explicitly specify the directory by name <span class="uicontrol">SAV OBJ('/mydir')</span> you
include the *DIR object in your save. The same applies to the home directory.</p>
<p>Another feature that the SAV command offers is the Scan objects (SCAN)
parameter for purposes such as virus protection. If exit programs are registered
with any of the integrated file system scan-related exit points, you can specify
whether objects will be scanned while being saved. This parameter also allows
you to indicate whether objects that previously failed a scan should be saved. </p>
<p>When you use the SAV command, you can specify OUTPUT(*PRINT) to receive
a report of what the server saved. You can also direct the output to a stream
file or to a user space. The SAV command does not provide the option to create
an output file. Interpret output from save (SAV) and restore (RST) describes
output file format information from the SAV and RST commands.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiurzaiu148.htm">Save file systems</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rzaiurzaiu004.htm">Interpret output from save (SAV) and restore (RST)</a></div>
<div><a href="rzaiurzaiu153.htm">Save changed objects in directories</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../apis/ifscloseexit.htm">Integrated File System Scan on Close API (Exit Program)</a></div>
<div><a href="../apis/ifsopenexit.htm">Integrated File System Scan on Open API (Exit Program)</a></div>
<div><a href="../ifs/rzaaxkickoff.htm">Integrated file system</a></div>
</div>
</div>
</body>
</html>