ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzau8_5.4.0.1/copyingattributes.htm

99 lines
5.5 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="reference" />
<meta name="DC.Title" content="Copying file attributes using HFS" />
<meta name="abstract" content="Learn how to copy file attributes using the hierarchical file system (HFS)." />
<meta name="description" content="Learn how to copy file attributes using the hierarchical file system (HFS)." />
<meta name="DC.Relation" scheme="URI" content="hfs.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="copyingattributes" />
<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>Copying file attributes using HFS</title>
</head>
<body id="copyingattributes"><a name="copyingattributes"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Copying file attributes using HFS</h1>
<div><p>Learn how to copy file attributes using the hierarchical file system
(HFS).</p>
<div class="section"><p>When you copy files using the hierarchical file system between
QOPT and QDLS file systems, the target file is assigned either default file
attributes or the file attributes of the source file. This depends on the
value you specify for the copy attributes (CPYATR) global value on the Change
Optical Attributes (CHGOPTA) command.</p>
<p>When the CPYATR global value is
specified as *NO on the CHGOPTA command, default file attributes are created
for files that are copied between the QOPT and QDLS file systems.</p>
<p>When
the CPYATR global value is specified as *YES on the CHGOPTA command, file
attributes from the source file are copied to the target file for copies between
the QOPT and QDLS file system.</p>
</div>
<div class="section"><h4 class="sectiontitle">Copying attributes from QDLS to QOPT</h4><div class="p">In
copies or moves from QDLS to QOPT, the following default attributes are assigned
to the target file: <ul><li>Standard file attributes: <ul><li>Creation date and time is set to the current date and time.</li>
<li>Modification date and time is set to the current date and time.</li>
<li>Access date and time is set to the current date and time.</li>
<li>The QFILATTR standard attribute is set to <kbd class="userinput">00000</kbd>;
the file is not read-only, the file is not hidden, the file is not a system
file, the file is not a directory, and the file has not changed since it was
last archived or created.</li>
</ul>
</li>
<li>No DIA document attributes are copied.</li>
<li>No user-defined extended attributes are copied.</li>
</ul>
</div>
<p>The file name (QNAME) and file size (QFILSIZE) are maintained.</p>
</div>
<div class="section"><h4 class="sectiontitle">Copying attributes from QOPT to QDLS</h4><p>In copies or
moves from QOPT to QDLS, the following default attributes are created:</p>
<ul><li>Standard file attributes: <ul><li>Creation date and time is set to the current date and time.</li>
<li>Modification date and time is set to the current date and time.</li>
<li>Access date and time is set to the current date and time.</li>
<li>The QFILATTR standard attribute is set to <kbd class="userinput">00000</kbd>;
the file is not read-only, the file is not hidden, the file is not a system
file, the file is not a directory, and the file has not changed since it was
last archived or created.</li>
</ul>
</li>
<li>DIA document attributes:<ul><li>DIA.CA04C700 (text description) is set to the file name.</li>
<li>DIA.CA04C701 (profile GCID) is set to code page 697 and character set
500.</li>
<li>DIA.CA04C706 (file type) is set to <kbd class="userinput">000E</kbd> (PC file).</li>
<li>DIA.CA04C720 (library assigned document name) is assigned to represent
this file.</li>
<li>DIA.CA04C708 (last changed date and time) is set to the current date and
time.</li>
<li>DIA.CA04C707 (creation date and time) is set to the current date and time. </li>
<li>DIA.CA04C710 (NLS information) is set to the language ID and country or
region ID of the job.</li>
<li>DIA.CA04C740 (file date and time) is set to the current date and time. </li>
</ul>
</li>
<li>No user-defined extended attributes are copied.</li>
</ul>
<p>The file name (QNAME) and file size (QFILSIZE) are maintained.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="hfs.htm" title="Read this topic collection to learn how to program with the hierarchical file system (HFS).">Hierarchical file system (HFS) programming</a></div>
</div>
</div>
</body>
</html>