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

677 lines
31 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 S/36 File (SAVS36F)</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="SAVS36F.Top_Of_Page"></a>
<h2>Save S/36 File (SAVS36F)</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="#SAVS36F.PARAMETERS.TABLE">Parameters</a><br>
<a href="#SAVS36F.COMMAND.EXAMPLES">Examples</a><br>
<a href="#SAVS36F.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="SAVS36F"></a>
<p>The Save System/36 File (SAVS36F) command can create:
</p>
<ul>
<li>a copy of a single database physical file or logical file to diskette, tape magnetic media or another database physical file in the same format as if a System/36 has saved the file.
</li>
<li>a copy of multiple database physical files or logical files to diskette or tape magnetic media in the same format as if a System/36 had saved the files as a save all set. The files can be all files in a library, all files that are not part of a file group, all files in a specific file group, or all files that begin with a specified set of characters.
</li>
</ul>
<p>A <b>Save All Set</b> is a group (set) of files that share the same group (set) name and that are saved (copied) to diskette or tape with one operation. The set of files can be restored (copied back from diskette or tape) with a single operation by referring to the set name (see the Restore System/36 Files (RSTS36F) command).
</p>
<p><b>File groups</b> are defined by file names that contain a period. The characters preceding the period identify the file group, and the characters following the period identify the file within the group. As with file names within the System/36 environment, the maximum number of characters is eight, including the period. Files with names that do not contain a period are not part of a file group. The following examples show the names of files within a file group.
</p>
<p>
<pre>
PAYROL.A
PAYROL.B Files in File Group <b>PAYROL</b>
PAYROL.C
A.ACCTS
A.INV
A.PROL Files in File Group <b>A</b>
A.B.GO
A.B.INV
A.B.GO
A.B.INV Files in File Group <b>A.B</b>
</pre>
</p>
<p>The saved files can be restored to the following systems:
</p>
<ul>
<li>System/36 (RESTORE procedure or $COPY utility)
</li>
<li>AS/400 (Restore System/36 File (RSTS36F) command)
</li>
</ul>
<p>The SAVS36F command is intended for exchanging files with a System/36. For creating a backup version of a file, the AS/400 save commands (for example, Save Object (SAVOBJ) or Save Changed Object (SAVCHGOBJ)) should be used.
</p>
<p><b>Restrictions</b>:
</p>
<ol>
<li>The following authorities are required (normally only applies when running on a system using resource security):
<ul>
<li>*USE authority for this command.
</li>
<li>*USE authority for the file or group of files specified in the FROMFILE parameter.
</li>
<li>*USE authority for the library specified in the FROMLIB parameter.
</li>
<li>*CHANGE authority to the file specified on the PHYFILE parameter if saving to an existing physical file.
</li>
<li>*USE authority for the library specified in the PHYFILE parameter if saving to a physical file.
</li>
<li>*CHANGE authority for the library specified in the PHYFILE parameter if saving to a physical file and the file does not exist.
</li>
<li>*USE authority for the diskette device description object, *USE authority for device file QSYSDKT, in library QSYS if saving to diskette.
</li>
<li>*USE authority for the tape device description object, *USE authority for device file QSYSTAP, in library QSYS if saving to tape.
</li>
<li>*USE authority for the based-on physical file if saving a logical file.
</li>
</ul>
</li>
<li>All diskettes that are used for the save operation should be initialized using the INZDKT CL command or the equivalent System/36 environment function (INIT operator control language (OCL) procedure or $INIT SSP utility). For a two-sided diskette, use a sector size of 256 or 1024. For a one-sided diskette, use a sector size of 128 or 512. If tape is used, each tape volume used should have been initialized with standard labels using the INZTAP CL command or the equivalent System/36 environment function (TAPEINIT OCL procedure or $TINIT SSP utility). Use a density of 1600 bits per inch when initializing the tape.
<p>
<b>Note: </b>If the tape or diskette has not been initialized as stated above, the System/36 will not be able to process the media.
</p>
</li>
<li>Object-level and record-level functions, other than read operations, should not be attempted for a file being saved by SAVS36F. Concurrent activity against the file (for example, moving the file or adding or removing records) can cause:
<ul>
<li>For a save operation of a single file (FROMFILE(file-name)), the save operation will end with escape message CPF9826 because the file cannot be allocated.
</li>
<li>For a save operation of multiple files (FROMFILE(*ALL or generic*-file-name)), the save function sends an inquiry message CPA2C6A because the file cannot be allocated. The message allows an ignore, retry and cancel response. The ignore response bypasses this file and attempts to save the next file selected.
</li>
</ul>
</li>
<li>When saving a single file to diskette, the diskette cannot already contain an active file with the same label and creation date as the new file to be created.
</li>
<li>When saving multiple files to diskette, the diskette used for the save cannot contain any active files.
</li>
<li>Not all physical and logical files can be saved with the SAVS36F command.
<ul>
<li>Only logical files created under the System/36 environment (for example, through the BLDINDEX OCL procedure) or through a DDM request from a System/36 system can be saved. These files are saved as System/36 alternative index files.
</li>
<li>All physical files created under the System/36 environment (for example, through the BLDFILE OCL procedure) or through a DDM request from a System/36 system are saved using information stored within the AS/400 file description. These files are saved as System/36 sequential, direct, or indexed physical files.
</li>
<li>Any physical files created by AS/400 commands or utilities can be saved as long as the record length is not greater than 4096. These files are saved as System/36 sequential files.
</li>
</ul>
</li>
<li>To generate a save format which can be processed by the System/36 RESTORE procedure, the following information is not saved:
<ul>
<li>If saving a logical file, only the description of the file is saved. The index (or access path) is not saved.
</li>
<li>If saving an indexed (keyed) physical file, the data is saved but the index is not. The index will be rebuilt after the file is restored.
</li>
</ul>
</li>
<li>The following restrictions apply to naming standards:
<ul>
<li>When saving a single file, the specified name (FROMFILE parameter) must meet naming standards. If not, message CPF0001 is sent when the SAVS36F command is processed.
</li>
<li>If a file name is found during a save operation of multiple files (FROMFILE(*ALL or generic*-file-name)) that does not meet the System/36 naming standards, diagnostic message CPF2C0E is sent and the file is not saved.
</li>
</ul>
</li>
<li>Multiple files (FROMFILE(*ALL) or FROMFILE(generic*-name)) cannot be saved to a physical file.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="SAVS36F.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="#SAVS36F.FROMFILE"><b>FROMFILE</b></a></td>
<td valign="top">From file</td>
<td valign="top"><i>Generic name, name</i>, *ALL</td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.FROMLIB"><b>FROMLIB</b></a></td>
<td valign="top">From library</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.DEV"><b>DEV</b></a></td>
<td valign="top">Device</td>
<td valign="top">Single values: *PHYFILE<br>Other values (up to 4 repetitions): <i>Name</i></td>
<td valign="top">Required, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.GROUP"><b>GROUP</b></a></td>
<td valign="top">File group qualifier</td>
<td valign="top"><i>Character value</i>, <b><u>*ALL</u></b>, *NONE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.SET"><b>SET</b></a></td>
<td valign="top">Set identifier</td>
<td valign="top"><i>Character value</i>, <b><u>#SAVE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.TOLABEL"><b>TOLABEL</b></a></td>
<td valign="top">File label</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.SEQNBR"><b>SEQNBR</b></a></td>
<td valign="top">Sequence number</td>
<td valign="top">1-9999, <b><u>*END</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.VOL"><b>VOL</b></a></td>
<td valign="top">Volume identifier</td>
<td valign="top">Values (up to 50 repetitions): <i>Character value</i>, <b><u>*MOUNTED</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.RETAIN"><b>RETAIN</b></a></td>
<td valign="top">Retention period</td>
<td valign="top">0-999, <b><u>1</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.ENDOPT"><b>ENDOPT</b></a></td>
<td valign="top">End of tape 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="#SAVS36F.DTACPR"><b>DTACPR</b></a></td>
<td valign="top">Data compression</td>
<td valign="top">*YES, <b><u>*NO</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#SAVS36F.PHYFILE"><b>PHYFILE</b></a></td>
<td valign="top">Physical file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Physical file</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#SAVS36F.MBROPT"><b>MBROPT</b></a></td>
<td valign="top">Data base member option</td>
<td valign="top"><b><u>*NOREPLACE</u></b>, *REPLACE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SAVS36F.CRTDATE"><b>CRTDATE</b></a></td>
<td valign="top">Creation date</td>
<td valign="top"><i>Date</i>, <b><u>*LAST</u></b>, *ALL</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="SAVS36F.FROMFILE"></a>
<h3>From file (FROMFILE)</h3>
<p>Specifies the name of the file being saved. The file specified must exist in the library specified in the <b>From library</b> prompt (FROMLIB parameter).
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>file-name</i></b></dt>
<dd>Specify the name of a single file to save.
</dd>
<dt><b>*ALL</b></dt>
<dd>All files in the specified library are saved. To further describe which files are saved, use the <b>File group qualifier</b> prompt (GROUP parameter).
</dd>
<dt><b><i>generic*-file-name</i></b></dt>
<dd>Specify a generic name of a group of files in the specified library to save. All files with the same prefix as the generic name are saved. A generic name is specified as a character string of one or more characters, followed by an asterisk.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.FROMLIB"></a>
<h3>From library (FROMLIB)</h3>
<p>Specifies which library contains the database files to be saved.
</p>
<p>This is a required parameter.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.DEV"></a>
<h3>Device (DEV)</h3>
<p>Specifies the name of a diskette unit or the names of one or more tape devices. A maximum of four tape device names can be specified. If more than one tape device is used, enter the names of the devices in the order in which they are used. Each device name must be already known on the system by a device description.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b>*PHYFILE</b></dt>
<dd>A database physical file receives the copied file. The qualified name of the physical file must be specified on the <b>Physical file</b> prompt (PHYFILE parameter). *PHYFILE is not valid if *ALL or a generic*-file-name is specified for the <b>From file</b> prompt (FROMFILE parameter).
</dd>
<dt><b><i>device-name</i></b></dt>
<dd>Specifies the name of the diskette unit or the names of one or more tape devices used for the save operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.GROUP"></a>
<h3>File group qualifier (GROUP)</h3>
<p>Specifies which file groups are to be saved. This parameter is valid only if *ALL is specified for the <b>From file</b> prompt (FROMFILE parameter).
</p>
<dl>
<dt><b>*ALL</b></dt>
<dd>All files are saved.
</dd>
<dt><b>*NONE</b></dt>
<dd>No files that belong to a file group are saved. Only files that do not belong to file group are saved.
</dd>
<dt><b><i>group-name</i></b></dt>
<dd>Specify the name of a file group. All files that belong to that file group are saved. Files that do not belong to the specified file group are not saved. A group name can be up to 7 characters in length. The first character in the name must be an alphabetic character (A through Z, #, @, or $). The remaining characters can be any combination of characters (numeric, alphabetic, and special) except commas (,), apostrophes ('), quotation marks ("), question mark (?), asterisk (*), or blanks. The period, which indicates a file group name, must not be included as part of the group name.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.SET"></a>
<h3>Set identifier (SET)</h3>
<p>Specifies the set identifier used to identify the entire set of files to be saved. This parameter is valid only if *ALL or a generic name is specified for the <b>From file</b> prompt (FROMFILE parameter).
</p>
<dl>
<dt><b>#SAVE</b></dt>
<dd>The default set identifier is used.
</dd>
<dt><b><i>set-identifier</i></b></dt>
<dd>Specify the set identifier used to identify the entire set of files to be saved. The set identifier can be up to 8 characters in length. The first character in the name must be an alphabetic character (A through Z, #, @, or $). The remaining characters can be any combination of characters (numeric, alphabetic, and special) except commas (,), apostrophes ('), quotation marks ("), question mark (?), asterisk (*), or blanks.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.TOLABEL"></a>
<h3>File label (TOLABEL)</h3>
<p>Specifies the label value (eight characters maximum) given to the new diskette or tape file created by the save operation of a single file. If no value is specified, the value of the <b>From file</b> prompt (FROMFILE parameter) is used as the diskette or tape label.
</p>
<p>This parameter is not allowed if *ALL or a generic name is specified for <b>From file</b> prompt (FROMFILE parameter).
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.SEQNBR"></a>
<h3>Sequence number (SEQNBR)</h3>
<p>Specifies, only when tape is used, which sequence number is used for the save operation.
</p>
<dl>
<dt><b><u>*END</u></b></dt>
<dd>The specified file or files are saved starting after the last sequence number on the first tape (that is, this file follows all other files currently on the tape volume). If the first tape is full, an error message is issued and the operation ends. If the sequence number to be assigned to the specified file is greater than 9999, an error message is issued and the operation ends.
<p>If multiple files are saved, the next file is saved to a file after the first file that was saved, and so on. If the sequence number to be assigned ever exceeds 9999, an error message is issued and the operation ends.
</p>
</dd>
<dt><b><i>file-sequence-number</i></b></dt>
<dd>Specify the sequence number of the tape file that is used for the save operation. Valid values range from 1 through 9999.
<p>If this sequence number already exists on the tape volume, the tape label at that sequence number must match the TOLABEL parameter. The existing file at that sequence number is overwritten, and all subsequent files on the volume are not accessible after the save.
</p>
<p>If a new tape file is added to the tape, the sequence number must be one higher than the sequence number of the last tape file on that volume. No gaps are allowed in the series of sequence numbers.
</p>
<p>If multiple files are being saved, this sequence number is used for the first file. All remaining files are saved as if *END was specified on the parameter SEQNBR. If the sequence number to be assigned ever exceeds 9999, an error message is issued and the operation ends.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.VOL"></a>
<h3>Volume identifier (VOL)</h3>
<p>Specifies the volume identifiers of the tape volumes on which the object data is to be saved. The volumes must be placed in the device in the same order as the volume identifiers are specified for this parameter.
</p>
<dl>
<dt><b><u>*MOUNTED</u></b></dt>
<dd>The volume currently placed in the device is used.
</dd>
</dl>
<dl>
<dt><b><i>volume-identifier</i></b></dt>
<dd>Specify the volume identifiers of the tapes or diskettes used for the save operation. A maximum of 50 volume identifiers can be specified.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.RETAIN"></a>
<h3>Retention period (RETAIN)</h3>
<p>Specifies the retention period for the newly created tape or diskette file. The file is protected and cannot be written over until the day after the retention period ends.
</p>
<dl>
<dt><b><u>1</u></b></dt>
<dd>A retention period of one day is used.
</dd>
<dt><b><i>retention-period</i></b></dt>
<dd>Specify the number of days the tape or diskette file should be kept. If a retention period of 999 is specified, the tape or diskette file becomes a permanent file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.ENDOPT"></a>
<h3>End of tape option (ENDOPT)</h3>
<p>Specifies, only when tape is used, what operation is automatically performed on the tape volume after the save operation ends. This parameter applies only to the last reel used.
</p>
<dl>
<dt><b>*REWIND</b></dt>
<dd>The tape is rewound, but not unloaded.
</dd>
</dl>
<dl>
<dt><b>*LEAVE</b></dt>
<dd>The tape is not rewound.
</dd>
</dl>
<dl>
<dt><b>*UNLOAD</b></dt>
<dd>The tape is automatically rewound and unloaded after the operation ends.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.DTACPR"></a>
<h3>Data compression (DTACPR)</h3>
<p>Specifies, when a diskette is used, whether the data is compressed into System/36 compatible format before it is written to the diskette. If the save command is operating while other jobs on the system are active and data compression is used, the overall system performance may be affected. This parameter is not valid if *PHYFILE or a tape device is specified on the <b>Device</b> prompt (DEV parameter).
</p>
<p>The possible values are:
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>The data is not compressed before being written to the diskette.
</dd>
<dt><b>*YES</b></dt>
<dd>The data is compressed before being written to the diskette.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.PHYFILE"></a>
<h3>Physical file (PHYFILE)</h3>
<p>Specifies the name of the file that receives the copied file. If the specified file does not exist, it is created in the current library as a non-keyed, program-described file with a record length of 256. The copied records are put in the first member of the physical file. If the file has no members, a member is created using the system date.
</p>
<p>The possible library values are:
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>The library list is used to locate the file.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is used to locate the file. If no library is specified as the current library for the job, QGPL is used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the library where the file is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.MBROPT"></a>
<h3>Data base member option (MBROPT)</h3>
<p>Specifies whether the new records replace or are added to the existing records.
</p>
<dl>
<dt><b><u>*NOREPLACE</u></b></dt>
<dd>Specifies whether a file already exists by the name specified on the PHYFILE parameter in the specified library, an error message is sent and the data in that member is not replaced.
</dd>
<dt><b>*REPLACE</b></dt>
<dd>The PHYFILE member is cleared before copying the first record.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SAVS36F.CRTDATE"></a>
<h3>Creation date (CRTDATE)</h3>
<p>Specifies, for a <i>date-differentiated</i> file (maintained by the System/36 environment), which instance (member) of the file or files is saved. A date-differentiated file has the same name as another file but it has a different file creation date. On this system, date-differentiated files are multiple-member physical files.
</p>
<dl>
<dt><b><u>*LAST</u></b></dt>
<dd>The most recently created member for the specified file or files are saved.
</dd>
<dt><b>*ALL</b></dt>
<dd>All members in the date-differentiated file are saved. If the file being saved is not date differentiated, only the last member created in the file is saved. *ALL is valid only when *ALL or a generic file name is specified for <b>From file</b> prompt (FROMFILE parameter).
</dd>
<dt><b><i>file-creation-date</i></b></dt>
<dd>Specify the creation date of the date-differentiated file member to save. A file creation date is valid only when a single file is saved, or a file name is specified on the <b>From file</b> prompt (FROMFILE parameter).
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="SAVS36F.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Saving a Single File</b>
</p>
<p>
<pre>
SAVS36F FROMFILE(PETE) FROMLIB(QS36F) DEV(I1)
</pre>
</p>
<p>This command saves the file named PETE located in library QS36F. Assuming that I1 is the name of a diskette device description, the file is saved on the diskette placed in the diskette drive. The diskette file label is PETE (same as the FROMFILE name). If PETE is a date-differentiated physical file, the most recently created instance (member) of PETE is saved. The diskette file has a retention period of one day (the retention period ends at midnight of the following day).
</p>
<p><b>Example 2: Saving a Single File</b>
</p>
<p>
<pre>
SAVS36F FROMFILE(MSTRPAY) FROMLIB(PAYLIB) DEV(T1 T2)
TOLABEL('PAY.MSTR') RETAIN(999)
</pre>
</p>
<p>This command saves the file named MSTRPAY located in library PAYLIB. Assuming that T1 and T2 are tape devices, the file is copied to the tapes on devices T1 and T2. The tape file label is PAY.MSTR and the tape file is a permanent file. The last tape used for the save is rewound at the end of the save operation.
</p>
<p><b>Example 3: Saving Multiple Files</b>
</p>
<p>
<pre>
SAVS36F FROMFILE(*ALL) FROMLIB(QS36F) DEV(T1 T2)
GROUP(*ALL) SET(ALLFL) RETAIN(999)
</pre>
</p>
<p>This command saves all database physical and logical files in library QS36F (including all files that belong to a file group). If any of the files are date-differentiated files, only the last member created in each file is saved. Assuming that T1 and T2 are tape devices, the files are copied to the tape volumes that are placed in tape drives T1 and T2. The label of the tape files created are the same as the names of the files that are saved. The first tape file created is located after the last sequence number on the tape. The remaining files are located after that first file. The tape files created are permanent. The last tape used for the save is rewound at the end of the save operation. The set identifier associated with this save all set is ALLFL.
</p>
<p><b>Example 4: Saving Multiple Files</b>
</p>
<p>
<pre>
SAVS36F FROMFILE(*ALL) FROMLIB(QS36F) DEV(T1 T2)
GROUP(*NONE) CRTDATE(*LAST) SET(NOGFL) RETAIN(999)
</pre>
</p>
<p>This command saves all database physical and logical files in library QS36F except those files that belong to a file group. If any of the files are date-differentiated files, only the last member created in each file is saved. Assuming that T1 and T2 are tape devices, the files are copied to the tape volumes that are placed in tape drives T1 and T2. The label of the tape files created is the same as the names of the files that are saved. The first tape file created is located after the last sequence number on the tape. The remaining files are located after that first file. The tape files created are permanent. The last tape used for the save is rewound at the end of the save operation. The set identifier associated with this save all set is NOGFL.
</p>
<p><b>Example 5: Saving Multiple Files</b>
</p>
<p>
<pre>
SAVS36F FROMFILE(*ALL) FROMLIB(GRPLIB) DEV(I1)
GROUP(GRP) CRTDATE(*ALL)
</pre>
</p>
<p>This command saves all database physical and logical files in library GRPLIB that belong to file group GRP (GRP.01, GRP.02, and so on). If any of the files are date-differentiated files, all members in the files are saved. Assuming that I1 is a diskette drive, the files are copied to the diskette that is placed in the diskette drive. The label of the diskette files created is the same as the names of the files that are saved. The diskette files expire after one day. The set identifier associated with this save all set is #SAVE.
</p>
<p><b>Example 6: Saving Multiple Files</b>
</p>
<p>
<pre>
SAVS36F FROMFILE(PAY*) FROMLIB(PAYROLL) DEV(I1)
SET(PAYSET) CRTDATE(*LAST)
VOL(PAYDKT) RETAIN(10)
</pre>
</p>
<p>This command saves all database physical and logical files in library PAYROLL whose names begin with the characters PAY (PAY.01, PAYRATE, and so on). If any of the files are date-differentiated files, only the last member created is saved. Assuming that I1 is a diskette drive, the files are copied to a diskette with a volume identifier of PAYDKT. The label of the diskette files created is the same as the names of the files that are saved. The diskette files expire after ten days. The set identifier associated with this save all set is PAYSET.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="SAVS36F.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF2C4A</b></dt>
<dd>Device &amp;1 not correct for command.
</dd>
<dt><b>CPF2C4B</b></dt>
<dd>Duplicate device &amp;1 specified in device name list.
</dd>
<dt><b>CPF2C4C</b></dt>
<dd>Diskette device &amp;1 included in multiple device specification.
</dd>
<dt><b>CPF2C4F</b></dt>
<dd>Diskette format not correct for DTACPR(*YES).
</dd>
<dt><b>CPF2C47</b></dt>
<dd>Existing file &amp;1 or member &amp;3 in library &amp;2 not replaced.
</dd>
<dt><b>CPF2C48</b></dt>
<dd>Input file &amp;1 in &amp;2 not correct for command.
</dd>
<dt><b>CPF2C49</b></dt>
<dd>Output file &amp;1 in &amp;2 not correct for command.
</dd>
<dt><b>CPF2C5B</b></dt>
<dd>Not all files were saved.
</dd>
<dt><b>CPF2C5C</b></dt>
<dd>Save operation ended before all files were saved.
</dd>
<dt><b>CPF2C5D</b></dt>
<dd>No files saved from library &amp;1.
</dd>
<dt><b>CPF2C5E</b></dt>
<dd>Input file &amp;1 in &amp;2 not correct for command.
</dd>
<dt><b>CPF2C5F</b></dt>
<dd>Tape file sequence numbers beyond 9999 not allowed.
</dd>
<dt><b>CPF2C50</b></dt>
<dd>File description for file &amp;1 is not available.
</dd>
<dt><b>CPF2C51</b></dt>
<dd>Member information for file &amp;1 in library &amp;2 is not available.
</dd>
<dt><b>CPF2C52</b></dt>
<dd>Error occurred during attempt to create file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF2C54</b></dt>
<dd>FROMFILE name &amp;1 too long to use for TOLABEL parameter.
</dd>
<dt><b>CPF2C55</b></dt>
<dd>TOLABEL parameter value &amp;1 contains embedded blank(s).
</dd>
<dt><b>CPF2C56</b></dt>
<dd>Physical file name &amp;1 too long.
</dd>
<dt><b>CPF2C58</b></dt>
<dd>Diskette format not acceptable for System/36.
</dd>
<dt><b>CPF2C59</b></dt>
<dd>FROMFILE name &amp;1 too long.
</dd>
<dt><b>CPF9810</b></dt>
<dd>Library &amp;1 not found.
</dd>
<dt><b>CPF9812</b></dt>
<dd>File &amp;1 in library &amp;2 not found.
</dd>
<dt><b>CPF9814</b></dt>
<dd>Device &amp;1 not found.
</dd>
<dt><b>CPF9820</b></dt>
<dd>Not authorized to use library &amp;1.
</dd>
<dt><b>CPF9822</b></dt>
<dd>Not authorized to file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF9825</b></dt>
<dd>Not authorized to device &amp;1.
</dd>
<dt><b>CPF9826</b></dt>
<dd>Cannot allocate file &amp;2.
</dd>
<dt><b>CPF9830</b></dt>
<dd>Cannot assign library &amp;1.
</dd>
<dt><b>CPF9831</b></dt>
<dd>Cannot assign device &amp;1.
</dd>
<dt><b>CPF9845</b></dt>
<dd>Error occurred while opening file &amp;1.
</dd>
<dt><b>CPF9847</b></dt>
<dd>Error occurred while closing file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF9848</b></dt>
<dd>Cannot open file &amp;1 in library &amp;2 member &amp;3.
</dd>
<dt><b>CPF9849</b></dt>
<dd>Error while processing file &amp;1 in library &amp;2 member &amp;3.
</dd>
</dl>
<p><b><u>*STATUS Messages</u></b>
</p>
<dl>
<dt><b>CPI2C13</b></dt>
<dd>Copying records from file &amp;1 in library &amp;2 member &amp;3.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SAVS36F.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>