ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/sav.htm

1325 lines
51 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Save Object (SAV)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="SAV.Top_Of_Page"></a>
<h2>Save Object (SAV)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#SAV.PARAMETERS.TABLE">Parameters</a><br>
<a href="#SAV.COMMAND.EXAMPLES">Examples</a><br>
<a href="#SAV.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="SAV"></a>
<p>The Save (SAV) command saves a copy of one or more objects that can be used in the integrated file system.
</p>
<p>For more information about integrated file system commands, see the Integrated file system information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>For detailed restrictions on using this command to save objects by using name patterns in the root directory, to save objects in libraries, or to save document library objects, see the Backup and Recovery book, SC41-5304.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="SAV.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#SAV.DEV"><b>DEV</b></a></td>
<td valign="top">Device</td>
<td valign="top">Values (up to 4 repetitions): <i>Path name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#SAV.OBJ"><b>OBJ</b></a></td>
<td valign="top">Objects</td>
<td valign="top">Values (up to 300 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="3">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top">Element 1: Name</td>
<td valign="top">
<i>Path name</i>, <b><u>*</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Include or omit</td>
<td valign="top">
<b><u>*INCLUDE</u></b>, *OMIT</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#SAV.PATTERN"><b>PATTERN</b></a></td>
<td valign="top">Name pattern</td>
<td valign="top">Values (up to 300 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Pattern</td>
<td valign="top">
<i>Character value</i>, <b><u>*</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Include or omit</td>
<td valign="top">
<b><u>*INCLUDE</u></b>, *OMIT</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.SUBTREE"><b>SUBTREE</b></a></td>
<td valign="top">Directory subtree</td>
<td valign="top"><b><u>*ALL</u></b>, *DIR, *NONE, *OBJ, *STG</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.SAVACT"><b>SAVACT</b></a></td>
<td valign="top">Save active</td>
<td valign="top"><b><u>*NO</u></b>, *YES, *SYNC</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.SAVACTOPT"><b>SAVACTOPT</b></a></td>
<td valign="top">Save active option</td>
<td valign="top"><b><u>*NONE</u></b>, *ALWCKPWRT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><i>Path name</i>, <b><u>*NONE</u></b>, *PRINT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.VOL"><b>VOL</b></a></td>
<td valign="top">Volume identifier</td>
<td valign="top">Single values: <b><u>*MOUNTED</u></b><br>Other values (up to 75 repetitions): <i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.LABEL"><b>LABEL</b></a></td>
<td valign="top">Label</td>
<td valign="top"><i>Character value</i>, <b><u>*GEN</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.OPTFILE"><b>OPTFILE</b></a></td>
<td valign="top">Optical file</td>
<td valign="top"><i>Path name</i>, <b><u>*</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.SEQNBR"><b>SEQNBR</b></a></td>
<td valign="top">Sequence number</td>
<td valign="top">1-16777215, <b><u>*END</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.EXPDATE"><b>EXPDATE</b></a></td>
<td valign="top">File expiration date</td>
<td valign="top"><i>Date</i>, <b><u>*PERM</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.ENDOPT"><b>ENDOPT</b></a></td>
<td valign="top">End of media option</td>
<td valign="top"><b><u>*REWIND</u></b>, *LEAVE, *UNLOAD</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.USEOPTBLK"><b>USEOPTBLK</b></a></td>
<td valign="top">Use optimum block</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.SAVACTMSGQ"><b>SAVACTMSGQ</b></a></td>
<td valign="top">Save active message queue</td>
<td valign="top"><i>Path name</i>, <b><u>*NONE</u></b>, *WRKSTN</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.INFTYPE"><b>INFTYPE</b></a></td>
<td valign="top">Type of output information</td>
<td valign="top"><b><u>*ALL</u></b>, *ERR, *SUMMARY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.SYSTEM"><b>SYSTEM</b></a></td>
<td valign="top">System</td>
<td valign="top">*ALL, <b><u>*LCL</u></b>, *RMT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="5"><a href="#SAV.CHGPERIOD"><b>CHGPERIOD</b></a></td>
<td valign="top">Time period for last change</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="5">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Start date</td>
<td valign="top">
<i>Date</i>, <b><u>*ALL</u></b>, *LASTSAVE</td>
</tr>
<tr>
<td valign="top">Element 2: Start time</td>
<td valign="top">
<i>Time</i>, <b><u>*ALL</u></b></td>
</tr>
<tr>
<td valign="top">Element 3: End date</td>
<td valign="top">
<i>Date</i>, <b><u>*ALL</u></b></td>
</tr>
<tr>
<td valign="top">Element 4: End time</td>
<td valign="top">
<i>Time</i>, <b><u>*ALL</u></b></td>
</tr>
<tr>
<td valign="top"><a href="#SAV.PRECHK"><b>PRECHK</b></a></td>
<td valign="top">Object pre-check</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.TGTRLS"><b>TGTRLS</b></a></td>
<td valign="top">Target release</td>
<td valign="top"><b><u>*CURRENT</u></b>, *PRV, V5R2M0, V5R3M0, V5R4M0</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.UPDHST"><b>UPDHST</b></a></td>
<td valign="top">Update history</td>
<td valign="top">Single values: <b><u>*NO</u></b>, *YES<br>Other values (up to 2 repetitions): *SYS, *PC</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.CLEAR"><b>CLEAR</b></a></td>
<td valign="top">Clear</td>
<td valign="top"><b><u>*NONE</u></b>, *ALL, *AFTER, *REPLACE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.DTACPR"><b>DTACPR</b></a></td>
<td valign="top">Data compression</td>
<td valign="top">*YES, *NO, <b><u>*DEV</u></b>, *LOW, *MEDIUM, *HIGH</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.COMPACT"><b>COMPACT</b></a></td>
<td valign="top">Data compaction</td>
<td valign="top"><b><u>*DEV</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAV.ASPDEV"><b>ASPDEV</b></a></td>
<td valign="top">ASP device</td>
<td valign="top"><i>Name</i>, <b><u>*DFT</u></b>, *ALLAVL, *, *SYSBAS, *CURASPGRP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#SAV.SCAN"><b>SCAN</b></a></td>
<td valign="top">Scan objects</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Scan during save</td>
<td valign="top">
<b><u>*NO</u></b>, *YES</td>
</tr>
<tr>
<td valign="top">Element 2: Save failed objects</td>
<td valign="top">
<b><u>*NOSAVFAILED</u></b>, *SAVFAILED</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="SAV.DEV"></a>
<h3>Device (DEV)</h3>
<p>Specifies the device to which the objects are to be saved.
</p>
<p>For more information on specifying device path names, refer to "Specifying the device name" in the Backup and Recovery information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>'save-file-path-name'</i></b></dt>
<dd>Specify the path name of the save file used to save the objects.
</dd>
<dt><b><i>'optical-device-path-name'</i></b></dt>
<dd>Specify the path name of the optical device used to save the objects.
</dd>
<dt><b><i>'tape-media-library-device-path-name'</i></b></dt>
<dd>Specify the path name of the tape media library device used to save the objects.
</dd>
<dt><b><i>'tape-device-path-name'</i></b></dt>
<dd>Specify the path name of the tape device used to save the objects. A maximum of four tape devices can be specified. If a virtual tape device is used, it must be the only device specified.
</dd>
<dt><b><i>'media-definition-path-name'</i></b></dt>
<dd>Specify the path name of the media definition (*MEDDFN) object that identifies the devices and media used to contain the saved data.
<p>For information about creating a media definition, see the Create Media Definition API in the System API Reference information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>For information about using a media definition, see the Backup and Recovery book, SC41-5304 and the Backup Your Server topic topic in the System API Reference information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.OBJ"></a>
<h3>Objects (OBJ)</h3>
<p>Specifies the objects to be saved. You can specify an object name pattern for the path name to be used. When a path name is specified that could match many objects, you can specify a value for the <b>Name pattern (PATTERN)</b> parameter to subset the objects that are to be saved.
</p>
<p>A maximum of 300 path names can be specified.
</p>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>Additional information about object name patterns is in the Integrated file system information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p><b>Element 1: Name </b>
</p>
<dl>
<dt><b><u>'*'</u></b></dt>
<dd>The objects in the current directory are saved.
</dd>
<dt><b><i>path-name</i></b></dt>
<dd>Specify an object path name or a pattern that can match many names.
</dd>
</dl>
<p><b>Element 2: Include or omit </b>
</p>
<p>Specifies whether names that match the pattern should be included or omitted from the operation. Note that in determining whether a name matches a pattern, relative name patterns are always treated as relative to the current working directory.
</p>
<p>
<b>Note: </b>The SUBTREE parameter determines whether the subtrees are included or omitted.
</p>
<dl>
<dt><b><u>*INCLUDE</u></b></dt>
<dd>The objects that match the object name pattern are to be saved, unless overridden by an *OMIT specification.
</dd>
<dt><b>*OMIT</b></dt>
<dd>The objects that match the object name pattern are not saved. This overrides an *INCLUDE specification and is intended to be used to omit a subset of a previously selected pattern.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.PATTERN"></a>
<h3>Name pattern (PATTERN)</h3>
<p>Specifies one or more object name patterns to be used to subset the objects to be saved. The <b>Objects (OBJ)</b> parameter defines the set of candidate objects. A maximum of 300 values can be specified for this parameter.
</p>
<p><b>Element 1: Pattern </b>
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>All objects which qualify for the operation are included or omitted.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify an object name or a pattern that can match many names.
</dd>
</dl>
<p><b>Element 2: Include or omit </b>
</p>
<p>Specifies whether names that match the pattern should be included or omitted from the operation.
</p>
<p>
<b>Note: </b>The SUBTREE parameter determines whether the subtrees are included or omitted.
</p>
<dl>
<dt><b><u>*INCLUDE</u></b></dt>
<dd>Only objects which are included by the OBJ parameter and match the PATTERN parameter are included in the save, unless overridden by an *OMIT specification.
</dd>
<dt><b>*OMIT</b></dt>
<dd>All objects which are included by the OBJ parameter are included in the save except those objects which match the PATTERN parameter. This overrides an *INCLUDE specification and is intended to be used to omit a subset of a previously selected pattern.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.SUBTREE"></a>
<h3>Directory subtree (SUBTREE)</h3>
<p>Specifies whether directory subtrees are included in the save operation.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>The entire subtree of each directory that matches the object name pattern is included. The subtree includes all subdirectories and the objects within those subdirectories.
</dd>
<dt><b>*DIR</b></dt>
<dd>The objects in the first level of each directory that matches the object name pattern are included. The subdirectories of each matching directory are included, but the objects in the subdirectories are not included.
</dd>
<dt><b>*NONE</b></dt>
<dd>No subtrees are included in the save operation. If a directory matches the object name pattern specified, the objects in the directory are included. If the directory has subdirectories, neither the subdirectories nor the objects in the subdirectories are included.
</dd>
<dt><b>*OBJ</b></dt>
<dd>Only the objects that exactly match the object name pattern will be processed. If the object name pattern specifies a directory, objects in the directory are not included.
</dd>
<dt><b>*STG</b></dt>
<dd>The objects that match the object name pattern are processed along with the storage for related objects. Objects that are saved using this value can only be restored using SUBTREE(*STG).
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.SAVACT"></a>
<h3>Save active (SAVACT)</h3>
<p>Specifies whether an object can be updated while it is being saved.
</p>
<p>
<b>Note: </b>If your system is in a restricted state, this parameter is ignored and the save operation is performed as if SAVACT(*NO) was specified.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Objects that are in use are not saved. Objects cannot be updated while being saved.
</dd>
<dt><b>*YES</b></dt>
<dd>Objects can be saved and used at the same time. The object checkpoints can occur at different times.
</dd>
<dt><b>*SYNC</b></dt>
<dd>Objects can be saved and used at the same time. All of the object checkpoints occur at the same time.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.SAVACTOPT"></a>
<h3>Save active option (SAVACTOPT)</h3>
<p>Specifies options to be used with the save while active parameter.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No special save while active options will be used.
</dd>
<dt><b>*ALWCKPWRT</b></dt>
<dd>Enables objects to be saved while they are being updated if the corresponding system attribute for the object is set.
<p>
<b>Note: </b>This option should only be used by applications to save objects that are associated with the application and that have additional backup and recovery considerations. For more information, refer to the Backup and Recovery information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether a list of information about the saved objects is created. The information can be directed to a spooled file, a stream file, or a user space.
</p>
<p>A stream file or user space is specified as a path name.
</p>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No output is created.
</dd>
</dl>
<dl>
<dt><b>*PRINT</b></dt>
<dd>The output is printed with the job's spooled output.
</dd>
</dl>
<dl>
<dt><b><i>'stream-file-path-name'</i></b></dt>
<dd>Specify the path name of the existing stream file to which the output of the command is directed.
</dd>
<dt><b><i>'user-space-path-name'</i></b></dt>
<dd>Specify the path name of the existing user space to which the output of the command is directed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.VOL"></a>
<h3>Volume identifier (VOL)</h3>
<p>Specifies the volume identifiers of the volumes, or the cartridge identifiers of tapes in a tape media library device, on which the data is saved. The volumes must be placed in the device in the same order as specified for this parameter.
</p>
<p>A maximum of 75 volume identifiers can be specified. After all specified volumes are filled, the save operation continues on whatever volumes are placed in the device.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*MOUNTED</u></b></dt>
<dd>The data is saved on the volumes placed in the device. For a media library device, the volume to be used is the next cartridge in the category mounted by the Set Tape Category (SETTAPCGY) command.
<p>
<b>Note: </b>This value cannot be specified when using an optical media library device.
</p>
</dd>
</dl>
<p><b>Other values (up to 75 repetitions)</b>
</p>
<dl>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the identifiers of one or more volumes in the order in which they are placed in a device and used to save the data.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.LABEL"></a>
<h3>Label (LABEL)</h3>
<p>Specifies the file identifier of the media to be used for the save operation.
</p>
<dl>
<dt><b><u>*GEN</u></b></dt>
<dd>The file label is created by the system.
<ul>
<li>For objects in libraries, this is the equivalent of LABEL(*LIB) on the Save Object (SAVOBJ) and Save Library (SAVLIB) commands.
</li>
<li>For document library objects, this is the equivalent of LABEL(*GEN) on the Save Document Library Object (SAVDLO) command.
</li>
<li>For objects in other file systems, the label is <b>SAVyyyymmdd</b>.
</li>
</ul>
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the identifier (up to 17 characters) of the tape file used for the save operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.OPTFILE"></a>
<h3>Optical file (OPTFILE)</h3>
<p>Specifies the path name of the optical file that is used for the save operation, beginning with the root directory of the volume.
</p>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>The system generates an optical file name in the root directory of the optical volume.
</dd>
<dt><b><i>'optical-directory-path-name/*'</i></b></dt>
<dd>The system generates an optical file name in the specified directory of the optical volume.
</dd>
</dl>
<dl>
<dt><b><i>'optical-file-path-name'</i></b></dt>
<dd>Specify the path name of the optical file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.SEQNBR"></a>
<h3>Sequence number (SEQNBR)</h3>
<p>Specifies, when tape is used, the sequence number to use as the starting point for the save operation.
</p>
<dl>
<dt><b><u>*END</u></b></dt>
<dd>The save operation begins after the last sequence number on the first tape. If the first tape is full, an error message is issued and the operation ends.
</dd>
<dt><b><i>1-16777215</i></b></dt>
<dd>Specify the sequence number of the file to be used for the save operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.EXPDATE"></a>
<h3>File expiration date (EXPDATE)</h3>
<p>Specifies the expiration date of the file created by the save operation. If a date is specified, the file is protected and cannot be overwritten until the specified expiration date.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>This parameter is valid for tape and optical files.
</li>
<li>Specifying this parameter does not protect against a later save operation specifying CLEAR(*ALL).
</li>
</ol>
<dl>
<dt><b><u>*PERM</u></b></dt>
<dd>The file is protected permanently.
</dd>
<dt><b><i>date</i></b></dt>
<dd>Specify the date when protection for the file ends.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.ENDOPT"></a>
<h3>End of media option (ENDOPT)</h3>
<p>Specifies the operation that is automatically done on the tape or optical volume after the save operation ends. If more than one volume is used, this parameter applies only to the last volume used; all other volumes are unloaded when the end of the volume is reached.
</p>
<p>
<b>Note: </b>This parameter is valid only if a tape or optical device name is specified for the DEV parameter. For optical devices, *UNLOAD is the only special value supported, *REWIND and *LEAVE will be ignored.
</p>
<dl>
<dt><b><u>*REWIND</u></b></dt>
<dd>The tape is automatically rewound, but not unloaded, after the operation has ended.
</dd>
</dl>
<dl>
<dt><b>*LEAVE</b></dt>
<dd>The tape does not rewind or unload after the operation ends. It remains at the current position on the tape drive.
</dd>
</dl>
<dl>
<dt><b>*UNLOAD</b></dt>
<dd>The tape is automatically rewound and unloaded after the operation ends. Some optical devices will eject the volume after the operation ends.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.USEOPTBLK"></a>
<h3>Use optimum block (USEOPTBLK)</h3>
<p>Specifies whether or not the optimum block size is used for the save operation.
</p>
<p>
<b>Note: </b>Specifying USEOPTBLK(*YES) may result in a tape that can be duplicated only to a device that supports the same block size.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The optimum block size supported by the device is used for Save commands. If the block size that is used is larger than a block size that is supported by all device types, then:
<ul>
<li>Performance may improve.
</li>
<li>The tape file that is created is only compatible with a device that supports the block size used. Commands such as Duplicate Tape (DUPTAP) do not duplicate files unless the files are being duplicated to a device which supports the same block size that was used.
</li>
<li>The value for the DTACPR parameter is ignored.
</li>
</ul>
</dd>
<dt><b>*NO</b></dt>
<dd>The optimum block size supported by the device is not used. Save commands use the default block size supported by all device types. The tape volume can be duplicated to any media format using the Duplicate Tape (DUPTAP) command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.SAVACTMSGQ"></a>
<h3>Save active message queue (SAVACTMSGQ)</h3>
<p>Specifies the message queue that the save operation uses to notify the user that the checkpoint processing is complete.
</p>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No notification message is sent.
</dd>
<dt><b>*WRKSTN</b></dt>
<dd>The notification message is sent to the work station message queue.
</dd>
<dt><b><i>path-name</i></b></dt>
<dd>Specify the path name of the message queue to be used.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.INFTYPE"></a>
<h3>Type of output information (INFTYPE)</h3>
<p>Specifies the type of information that is directed to the spooled file, stream file, or user space.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>The file will contain information about the command, an entry for each directory, an entry for each object that was successfully saved, and an entry for each object that was not successfully saved.
</dd>
<dt><b>*ERR</b></dt>
<dd>The file will contain information about the command, an entry for each directory, and an entry for each object that was not successfully saved.
</dd>
<dt><b>*SUMMARY</b></dt>
<dd>The file will contain information about the command, and an entry for each directory.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.SYSTEM"></a>
<h3>System (SYSTEM)</h3>
<p>Specifies whether to process objects that exist on the local system or remote systems.
</p>
<dl>
<dt><b><u>*LCL</u></b></dt>
<dd>Only local objects are processed.
</dd>
<dt><b>*RMT</b></dt>
<dd>Only remote objects are processed.
</dd>
<dt><b>*ALL</b></dt>
<dd>Both local and remote objects are processed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.CHGPERIOD"></a>
<h3>Time period for last change (CHGPERIOD)</h3>
<p>Specifies a date/time range. Objects that were last changed within that range will be saved.
</p>
<p><b>Element 1: Start date</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>No starting date is specified. All objects last changed prior to the ending date will be saved.
</dd>
<dt><b>*LASTSAVE</b></dt>
<dd>The objects that have changed since the last time they were saved with UPDHST(*YES) specified are saved. <b>Notes:</b>
<ol>
<li>If this value is specified, the value *ALL must be specified for all other elements of this parameter.
</li>
<li>For local file systems, the system archive attribute is used. For remote file systems, the PC archive attribute is used.
</li>
</ol>
</dd>
<dt><b><i>date</i></b></dt>
<dd>Specify the date after which objects that have changed are to be saved. The date must be specified in job date format.
</dd>
</dl>
<p><b>Element 2: Start time</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All times of day are included in the range.
</dd>
<dt><b><i>time</i></b></dt>
<dd>Specify the time on the start date after which objects that have changed are to be saved.
</dd>
</dl>
<dl>
<dt><b></b></dt>
<dd>The time is specified in 24-hour format with or without a time separator as follows:
<ul>
<li>With a time separator, specify a string of 5 or 8 digits, where the time separator for the job separates the hours, minutes, and seconds. If you issue this command from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command fails.
</li>
<li>Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where <b>hh</b> = hours, <b>mm</b> = minutes, and <b>ss</b> = seconds. Valid values for <b>hh</b> range from 00 through 23. Valid values for <b>mm</b> and <b>ss</b> range from 00 through 59.
</li>
</ul>
</dd>
</dl>
<p>
<b>Note: </b>Specifying an explicit time is valid only if the starting date is an explicit date.
</p>
<p><b>Element 3: End date</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>No ending date is specified. All objects changed since the starting date will be saved.
</dd>
<dt><b><i>date</i></b></dt>
<dd>Specify the date before which objects that have changed are to be saved. The date must be specified in the job date format.
</dd>
</dl>
<p><b>Element 4: End time</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All times of day are included in the range.
</dd>
<dt><b><i>time</i></b></dt>
<dd>Specify a time on the end date before which objects that have changed are to be saved.
</dd>
</dl>
<dl>
<dt><b></b></dt>
<dd>The time is specified in 24-hour format with or without a time separator as follows:
<ul>
<li>With a time separator, specify a string of 5 or 8 digits, where the time separator for the job separates the hours, minutes, and seconds. If you issue this command from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command fails.
</li>
<li>Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where <b>hh</b> = hours, <b>mm</b> = minutes, and <b>ss</b> = seconds. Valid values for <b>hh</b> range from 00 through 23. Valid values for <b>mm</b> and <b>ss</b> range from 00 through 59.
</li>
</ul>
</dd>
</dl>
<p>
<b>Note: </b>Specifying an explicit time is valid only if the ending date is an explicit date.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.PRECHK"></a>
<h3>Object pre-check (PRECHK)</h3>
<p>Specifies whether the save operation ends if any of the selected objects cannot be saved.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>The save operation does not end. Objects that can be saved are saved.
</dd>
<dt><b>*YES</b></dt>
<dd>The save operation ends. Nothing is saved unless all of the selected objects can be saved.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.TGTRLS"></a>
<h3>Target release (TGTRLS)</h3>
<p>Specifies the release level of the operating system on which you intend to use the object being saved.
</p>
<p>When specifying the <b>target-release</b> value, the format VxRxMx is used to specify the release, where Vx is the version, Rx is the release, and Mx is the modification level. For example, V5R3M0 is version 5, release 3, modification 0.
</p>
<p>Valid values depend on the current version, release, and modification level of the operating system, and they change with each new release. You can press F4 while prompting this command parameter to see a list of valid target release values.
</p>
<dl>
<dt><b><u>*CURRENT</u></b></dt>
<dd>The object is to be restored to, and used on, the release of the operating system currently running on your system. The object can also be restored to a system with any subsequent release of the operating system installed.
</dd>
<dt><b>*PRV</b></dt>
<dd>The object is to be restored to the previous release with modification level 0 of the operating system. The object can also be restored to a system with any subsequent release of the operating system installed.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the release in the format VxRxMx. The object can be restored to a system with the specified release or with any subsequent release of the operating system installed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.UPDHST"></a>
<h3>Update history (UPDHST)</h3>
<p>Specifies whether to update the save history on the objects saved with this save operation. The save history information is used when CHGPERIOD(*LASTSAVE) is specified on a later save operation.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>This save operation will not be updated in the save history of the selected objects.
</dd>
<dt><b>*YES</b></dt>
<dd>The save history is updated. For local file systems, the system save history is updated. For remote file systems, the PC save history is updated.
</dd>
</dl>
<p><b>Other values (up to 2 repetitions)</b>
</p>
<dl>
<dt><b>*SYS</b></dt>
<dd>The system save history is updated.
</dd>
<dt><b>*PC</b></dt>
<dd>The PC save history is updated.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.CLEAR"></a>
<h3>Clear (CLEAR)</h3>
<p>Specifies whether active data on the media is automatically cleared or replaced. Active data is any file on the media that has not expired. For saves to tape, clearing active data will make any files on the tape volume beyond the last file written by the save operation no longer accessible. For saves to optical, the files written by the save operation can be automatically replaced while other files on the volume remain active, or all active files can be automatically cleared. Clearing does not erase the data, it just makes the files no longer accessible.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>Clearing a tape does not initialize it. You should initialize tapes to a standard label format before the save command is issued by using the Initialize Tape (INZTAP) command and specifying a value for the NEWVOL parameter.
</li>
<li>Clearing an optical volume does initialize it.
</li>
<li>If a volume that is not initialized is encountered during the save operation, an inquiry message is sent and an operator can initialize the volume.
</li>
</ol>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>None of the media is automatically cleared. If the save operation encounters active data on a tape volume or in a save file, an inquiry message is sent, allowing the operator to either end the save operation or clear the media. If the save operation encounters the specified optical file, an inquiry message is sent, allowing the operator to either end the save operation or replace the file.
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>All of the media is automatically cleared.
</dd>
</dl>
<p>If tapes are used and a sequence number is specified for the SEQNBR parameter, the first tape is cleared beginning at that sequence number. All tapes following that first tape are completely cleared. To clear the entire first tape, SEQNBR(1) must be specified.
</p>
<dl>
<dt><b>*AFTER</b></dt>
<dd>All media after the first volume is automatically cleared. If the save operation encounters active data on the first tape volume, an inquiry message is sent, allowing the operator to either end the save operation or clear the media. If the save operation encounters the specified optical file on the first volume, an inquiry message is sent, allowing the operator to either end the save operation or replace the file.
</dd>
</dl>
<dl>
<dt><b></b></dt>
<dd>
<p>
<b>Note: </b>The *AFTER value is not valid for save files.
</p>
</dd>
</dl>
<dl>
<dt><b>*REPLACE</b></dt>
<dd>Active data on the media is automatically replaced. Optical volumes are not initialized. Other media is automatically cleared in the same way as the *ALL value.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.DTACPR"></a>
<h3>Data compression (DTACPR)</h3>
<p>Specifies whether data compression is used. If the save is running while other jobs on the system are active and software compression is used, the overall system performance may be affected.
</p>
<p>
<b>Note: </b>If *DEV is specified for both this parameter and the <b>Data compaction (COMPACT)</b> parameter, only device data compaction is performed if device data compaction is supported on the device. Otherwise, data compression is performed.
</p>
<p>If *YES is specified for this parameter and *DEV is specified for the COMPACT parameter, both device data compaction and device data compression are performed if supported on the device.
</p>
<dl>
<dt><b><u>*DEV</u></b></dt>
<dd>If the save is to tape and the target device supports compression, hardware compression is performed. Otherwise, no data compression is performed.
</dd>
</dl>
<dl>
<dt><b>*NO</b></dt>
<dd>No data compression is performed.
</dd>
<dt><b>*YES</b></dt>
<dd>If the save is to tape and the target device supports compression, hardware compression is performed. If compression is not supported, or if the save data is written to optical media or to a save file, software compression is performed. Low software compression is used for all devices except optical DVD, which uses medium software compression.
</dd>
<dt><b>*LOW</b></dt>
<dd>If the save operation is to a save file or optical, software data compression is performed with the SNA algorithm. Low compression is usually faster and the compressed data is usually larger than if medium or high compression is used.
<p>
<b>Note: </b>This value is not valid for tape.
</p>
</dd>
<dt><b>*MEDIUM</b></dt>
<dd>If the save operation is to a save file or optical, software data compression is performed with the TERSE algorithm. Medium compression is usually slower than low compression but faster than high compression. The compressed data is usually smaller than if low compression is used and larger than if high compression is used.
<p>
<b>Note: </b>This value is not valid for tape.
</p>
</dd>
<dt><b>*HIGH</b></dt>
<dd>If the save operation is to a save file or optical, software data compression is performed with the LZ1 algorithm. High compression is usually slower and the compressed data is usually smaller than if low or medium compression is used.
<p>
<b>Note: </b>This value is not valid for tape.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.COMPACT"></a>
<h3>Data compaction (COMPACT)</h3>
<p>Specifies whether device data compaction is performed.
</p>
<dl>
<dt><b><u>*DEV</u></b></dt>
<dd>Device data compaction is performed if the data is saved to tape and all tape devices specified for the <b>Device (DEV)</b> parameter support the compaction feature.
<p>
<b>Note: </b>If *DEV is specified for both the <b>Data compression (DTACPR)</b> parameter and this parameter, only device data compaction is performed if device data compaction is supported on the device. Otherwise, data compression is performed if supported on the device.
</p>
<p>If *YES is specified for the DTACPR parameter and *DEV is specified for this parameter, both device data compaction and device data compression are performed if supported on the device.
</p>
</dd>
<dt><b>*NO</b></dt>
<dd>Device data compaction is not performed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.ASPDEV"></a>
<h3>ASP device (ASPDEV)</h3>
<p>Specifies the auxiliary storage pool (ASP) device to be included in the save operation.
</p>
<dl>
<dt><b><u>*DFT</u></b></dt>
<dd>The operation uses the ASPDEV value appropriate for the file system from which objects are being saved. For Integrated File System objects, *ALLAVL is used. For objects from the QSYS file system, the corresponding save command ASPDEV default is used.
</dd>
<dt><b>*ALLAVL</b></dt>
<dd>The operation includes the system ASP (ASP number 1), all basic user ASPs (ASP numbers 2-32), and all available independent ASPs.
</dd>
<dt><b>*</b></dt>
<dd>The operation includes the system ASP, all basic user ASPs, and, if the current thread has an ASP group, all independent ASPs in the ASP group.
</dd>
<dt><b>*SYSBAS</b></dt>
<dd>The system ASP and all basic user ASPs are included in the save operation.
</dd>
<dt><b>*CURASPGRP</b></dt>
<dd>If the current thread has an ASP group, all independent ASPs in the ASP group are included in the save operation.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the ASP device to be included in the save operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAV.SCAN"></a>
<h3>Scan objects (SCAN)</h3>
<p>Specifies whether objects will be scanned while being saved when exit programs are registered with any of the integrated file system scan-related exit points and whether objects that previously failed a scan should be saved.
</p>
<p>The integrated file system scan-related exit points are:
</p>
<ul>
<li>QIBM_QP0L_SCAN_OPEN - Integrated File System Scan on Open Exit Program
</li>
<li>QIBM_QP0L_SCAN_CLOSE - Integrated File System Scan on Close Exit Program
</li>
</ul>
<p>For details on these exit points, see the System API Reference information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p><b>Element 1: Scan during save</b>
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Objects will not be scanned by the scan-related exit programs.
</dd>
<dt><b>*YES</b></dt>
<dd>Objects will be scanned according to the rules described in the scan-related exit programs.
</dd>
</dl>
<p><b>Element 2: Save failed objects</b>
</p>
<dl>
<dt><b><u>*NOSAVFAILED</u></b></dt>
<dd>Objects that have either previously failed a scan or that fail a scan by a QIBM_QP0L_SCAN_OPEN exit program during this save will not be saved.
</dd>
<dt><b>*SAVFAILED</b></dt>
<dd>Objects that have either previously failed a scan or that fail a scan during this save will be saved.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="SAV.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Saving All Data Not in Libraries and Not Document Library Objects</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('/*') ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT))
</pre>
</p>
<p>This command saves all objects that are not in libraries and are not document library objects.
</p>
<p><b>Example 2: Saving Changes Since the Last Time the Objects Were Saved</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('/*') ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT))
CHGPERIOD(*LASTSAVE)
</pre>
</p>
<p>This command saves all objects that are not in libraries, that are not document library objects, and that have changed since the last time they were saved with UPDHST(*YES) specified.
</p>
<p><b>Example 3: Saving Data That Has Not Changed Since 1999</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('/*') ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT))
CHGPERIOD((*ALL *ALL '12/31/99'))
</pre>
</p>
<p>This command saves all objects that are not in libraries, that are not document library objects, and that have not changed since December 31, 1999.
</p>
<p><b>Example 4: Saving All Objects in the Current Directory</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
</pre>
</p>
<p>This command uses the default value '*' on the OBJ parameter to save all objects in the current directory and its subdirectories. This example is not valid if the current directory is the root directory or if the current directory is in the QDLS file system.
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ('*') SUBTREE(*NONE)
</pre>
</p>
<p>This command saves all objects in the current directory but not in the subdirectories.
</p>
<p><b>Example 5: Omitting Objects During a Save Operation</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('*') ('**.BACKUP' *OMIT) ('**.TEMP' *OMIT))
</pre>
</p>
<p>This command saves all objects in the current directory except those with extensions of .BACKUP and .TEMP (the entire subtrees of directories with these extensions are omitted).
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('/A') ('/A/B/C' *OMIT))
</pre>
</p>
<p>This command saves all objects in directory /A and its subdirectories, except those in directory /A/B/C.
</p>
<p><b>Example 6: Saving a Library</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ('/QSYS.LIB/A.LIB')
</pre>
</p>
<p>This command saves library A on the tape device named TAP01.
</p>
<p><b>Example 7: Saving Two Libraries</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ('/QSYS.LIB/A.LIB')
SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ('/QSYS.LIB/B.LIB')
</pre>
</p>
<p>These two commands save two libraries. The first command saves library A and the second command saves library B.
</p>
<p><b>Example 8: Saving All Files in a Library</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ('/QSYS.LIB/MYLIB.LIB/*.FILE')
</pre>
</p>
<p>This command saves all files in the library MYLIB on the tape device named TAP01.
</p>
<p><b>Example 9: Saving Two Objects in a Library</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ('/QSYS.LIB/MYLIB.LIB/MYPGM.PGM')
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ('/QSYS.LIB/MYLIB.LIB/MYFILE.FILE')
</pre>
</p>
<p>These two commands save two objects in the same library. This first command saves the program MYPGM from library MYLIB. The second command saves the file MYFILE from library MYLIB.
</p>
<p><b>Example 10: Saving a Stream File, a Database File, and a Document</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ('/MyDir/MyFile')
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ('/QSYS.LIB/MYLIB.LIB/MYFILE.FILE')
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ('/QDLS/MYFLR/MYDOC') SUBTREE(*OBJ) UPDHST(*YES)
</pre>
</p>
<p>Three commands are used in this example to save three objects. The first command saves the stream file MyFile in the directory MyDir on the tape device named TAP01. The second command saves the database file MYFILE in the library named MYLIB on the tape device named TAP01. The third command saves the document MYDOC in a folder named MYFLR on the tape device named TAP01.
</p>
<p><b>Example 11: Saving to a Save File</b>
</p>
<p>
<pre>
SAV DEV('/QSYS.LIB/MYLIB.LIB/MYSAVF.FILE') OBJ(MYDIR)
</pre>
</p>
<p>This command saves the directory MYDIR to a save file named MYSAVF.
</p>
<p><b>Example 12: Using Symbolic Links for the Save Operation</b>
</p>
<p>
<pre>
SAV DEV('DevLink')
OBJ(('DirLink') ('FileLink') ('DirLink/*'))
SAVACT(*YES) SAVACTMSGQ('MsgqLink')
</pre>
</p>
<p>This command assumes that the current directory contains the following symbolic links:
</p>
<ul>
<li>DevLink = /QSYS.LIB/TAP01.DEVD
</li>
<li>DirLink = /SomeDirectory
</li>
<li>FileLink = /SomeDirectory/SomeFile
</li>
<li>MsgqLink = /QSYS.LIB/LIB1.LIB/MSGQ1.MSGQ
</li>
</ul>
<p>This command saves the names associated with DirLink and FileLink, and the objects in SomeDirectory, to device TAP01. A message is sent when the save-while-active checkpoint is complete.
</p>
<p>Symbolic links can be used to specify a device, a save-while-active message queue, and an output file. When symbolic links are specified to be saved, only the names of the associated objects are saved, not the content of the associated objects. A symbolic link to a directory can be used to save objects in the directory. Additional information about symbolic links is in the <b>Integrated file system</b> topic in the <b>File systems and management</b> category of the Information Center.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="SAV.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPFA0DB</b></dt>
<dd>Object not a QSYS.LIB object. Object is &amp;1.
</dd>
<dt><b>CPFA0DC</b></dt>
<dd>Object not a QDLS object. Object is &amp;1.
</dd>
<dt><b>CPF3708</b></dt>
<dd>Save file &amp;1 in &amp;2 too small.
</dd>
<dt><b>CPF3727</b></dt>
<dd>Duplicate device &amp;1 specified on device name list.
</dd>
<dt><b>CPF3735</b></dt>
<dd>Storage limit exceeded for user profile &amp;1.
</dd>
<dt><b>CPF3738</b></dt>
<dd>Device &amp;1 used for save or restore is damaged.
</dd>
<dt><b>CPF3768</b></dt>
<dd>Device &amp;1 not valid for command.
</dd>
<dt><b>CPF377D</b></dt>
<dd>Save ended because of read error on internal system resource.
</dd>
<dt><b>CPF377E</b></dt>
<dd>Not enough storage for save-while-active request.
</dd>
<dt><b>CPF378A</b></dt>
<dd>Message queue not available.
</dd>
<dt><b>CPF378C</b></dt>
<dd>SAVACTMSGQ(*WRKSTN) not valid for batch job.
</dd>
<dt><b>CPF3782</b></dt>
<dd>File &amp;1 in &amp;2 not a save file.
</dd>
<dt><b>CPF3794</b></dt>
<dd>Save or restore operation ended unsuccessfully.
</dd>
<dt><b>CPF380D</b></dt>
<dd>Save or restore of entire system completed unsuccessfully.
</dd>
<dt><b>CPF3808</b></dt>
<dd>Save file &amp;2 in &amp;3 not complete.
</dd>
<dt><b>CPF381D</b></dt>
<dd>Values on CHGPERIOD parameter not valid.
</dd>
<dt><b>CPF3812</b></dt>
<dd>Save file &amp;1 in &amp;2 in use.
</dd>
<dt><b>CPF382B</b></dt>
<dd>Parameters not valid with multiple file systems.
</dd>
<dt><b>CPF382C</b></dt>
<dd>OBJ parameter value not valid for QSYS file system.
</dd>
<dt><b>CPF382E</b></dt>
<dd>Specified parameter not valid for QDLS file system.
</dd>
<dt><b>CPF382F</b></dt>
<dd>OBJ parameter value not valid for QDLS file system.
</dd>
<dt><b>CPF3823</b></dt>
<dd>No objects saved or restored.
</dd>
<dt><b>CPF3826</b></dt>
<dd>*INCLUDE object required on OBJ parameter.
</dd>
<dt><b>CPF3828</b></dt>
<dd>Error occurred while attempting to use &amp;1.
</dd>
<dt><b>CPF3829</b></dt>
<dd>Specified parameter not valid for QSYS file system.
</dd>
<dt><b>CPF383A</b></dt>
<dd>Save or restore ended unsuccessfully.
</dd>
<dt><b>CPF383B</b></dt>
<dd>End of file &amp;1.
</dd>
<dt><b>CPF383D</b></dt>
<dd>Cannot use &amp;1.
</dd>
<dt><b>CPF3833</b></dt>
<dd>Specified value on DEV parameter not valid.
</dd>
<dt><b>CPF3834</b></dt>
<dd>Too many values specified on the DEV parameter.
</dd>
<dt><b>CPF3835</b></dt>
<dd>Tape devices do not support same densities.
</dd>
<dt><b>CPF3837</b></dt>
<dd>&amp;1 objects saved. &amp;2 not saved.
</dd>
<dt><b>CPF3838</b></dt>
<dd>&amp;1 objects saved. &amp;2 objects not saved.
</dd>
<dt><b>CPF384A</b></dt>
<dd>Volume identifier &amp;1 not valid.
</dd>
<dt><b>CPF384B</b></dt>
<dd>Optical file specified not valid.
</dd>
<dt><b>CPF384C</b></dt>
<dd>Error occurred during CCSID conversion.
</dd>
<dt><b>CPF384E</b></dt>
<dd>USEOPTBLK(*YES) not valid for CD-ROM premastering.
</dd>
<dt><b>CPF386B</b></dt>
<dd>Not able to save &amp;1.
</dd>
<dt><b>CPF386C</b></dt>
<dd>Not able to save &amp;1.
</dd>
<dt><b>CPF3894</b></dt>
<dd>Cancel reply received for message &amp;1.
</dd>
<dt><b>CPF38A5</b></dt>
<dd>Error on the PATTERN parameter.
</dd>
<dt><b>CPF5729</b></dt>
<dd>Not able to allocate object &amp;1.
</dd>
<dt><b>CPF9802</b></dt>
<dd>Not authorized to object &amp;2 in &amp;3.
</dd>
<dt><b>CPF9825</b></dt>
<dd>Not authorized to device &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAV.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>