83 lines
5.1 KiB
HTML
83 lines
5.1 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="reference" />
|
|
<meta name="DC.Title" content="Data conversion" />
|
|
<meta name="abstract" content="When you access files through the integrated file system, data in the files may or may not be converted, depending on the open mode requested when the file is opened." />
|
|
<meta name="description" content="When you access files through the integrated file system, data in the files may or may not be converted, depending on the open mode requested when the file is opened." />
|
|
<meta name="DC.subject" content="conversion, data, data conversion, file, open modes, modes of open file, binary open file mode, text open file mode" />
|
|
<meta name="keywords" content="conversion, data, data conversion, file, open modes, modes of open file, binary open file mode, text open file mode" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaaxpgmifs.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../apis/open.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaaxdtacvn" />
|
|
<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>Data conversion</title>
|
|
</head>
|
|
<body id="rzaaxdtacvn"><a name="rzaaxdtacvn"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Data conversion</h1>
|
|
<div><p>When you access files through the integrated file system, data
|
|
in the files may or may not be converted, depending on the open mode requested
|
|
when the file is opened.</p>
|
|
<div class="section"><p>An open file can be in one of two open modes:</p>
|
|
<dl><dt class="dlterm">Binary</dt>
|
|
<dd>The data is read from the file and written to the file without conversion.
|
|
The application is responsible for handling the data.</dd>
|
|
<dt class="dlterm">Text</dt>
|
|
<dd>The data is read from the file and written to the file, assuming it is
|
|
in textual form. When the data is read from the file, it is converted from
|
|
the coded character set identifier (CCSID) of the file to the CCSID of the
|
|
application, job, or system receiving the data. When data is written to the
|
|
file, it is converted from the CCSID of the application, job, or system to
|
|
the CCSID of the file. For true stream files, any line-formatting characters
|
|
(such as carriage return, tab, and end-of-file) are just converted from one
|
|
CCSID to another. <p>When reading from record files that are being used as
|
|
stream files, end-of-line characters (carriage return and line feed) are appended
|
|
to the end of the data in each record. When writing to record files:</p>
|
|
<ul><li>End-of-line characters are removed.</li>
|
|
<li>Tab characters are replaced by the appropriate number of blanks to the
|
|
next tab position.</li>
|
|
<li>Lines are padded with either blanks (for a source physical file member)
|
|
or nulls (for a data physical file member) to the end of the record.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="section"><p>On an open request, one of the following can be specified: </p>
|
|
<dl><dt class="dlterm">Binary, Forced</dt>
|
|
<dd>The data is processed as binary regardless of the actual content of the
|
|
file. The application is responsible for knowing how to handle the data.</dd>
|
|
<dt class="dlterm">Text, Forced</dt>
|
|
<dd>The data is assumed to be text. The data is converted from the CCSID
|
|
of the file to the CCSID of the application.</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="section"><p>A default of <em>Binary, Forced</em> is used for the integrated
|
|
file system <span class="apiname">open()</span> function.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaaxpgmifs.htm" title="The addition of the integrated file system to the iSeries server server in V3R1M0 did not affect existing iSeries server applications. The programming languages, utilities, and system support (such as data description specifications) operate in the same way as they did before the addition of the integrated file system.">Programming support</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../apis/open.htm">open() API</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |