64 lines
3.9 KiB
HTML
64 lines
3.9 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="task" />
|
|
<meta name="DC.Title" content="Receive data from a database file" />
|
|
<meta name="abstract" content="The only command you can use to receive data from a database file is the Receive File (RCVF) command." />
|
|
<meta name="description" content="The only command you can use to receive data from a database file is the Receive File (RCVF) command." />
|
|
<meta name="DC.subject" content="database file, receiving data area" />
|
|
<meta name="keywords" content="database file, receiving data area" />
|
|
<meta name="DC.Relation" scheme="URI" content="wfile.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/rcvf.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rddbf" />
|
|
<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>Receive data from a database file</title>
|
|
</head>
|
|
<body id="rddbf"><a name="rddbf"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Receive data from a database file</h1>
|
|
<div><p>The only command you can use to receive data from a database file
|
|
is the <span class="cmdname">Receive File (RCVF)</span> command.</p>
|
|
<div class="section"> <p>When you run a <span class="cmdname">Receive File (RCVF)</span> command,
|
|
the next record on the file's access path is read, and the values of the fields
|
|
defined in the database record format are placed in the corresponding CL variables.
|
|
Note that CL does not support zoned decimal or binary numbers. Consequently,
|
|
fields in the database file defined as zoned decimal or binary cause *DEC
|
|
fields to be defined in the CL procedure or program. *DEC fields are internally
|
|
supported as packed decimal, and the <span class="cmdname">Receive File (RCVF)</span> command
|
|
performs the conversion from zoned decimal and binary to packed decimal as
|
|
required. Database files which contain floating point data cannot be used
|
|
in a CL procedure or program.</p>
|
|
<p>When the end of file is reached, message
|
|
CPF0864 is sent to the procedure or OPM program. The CL variables declared
|
|
for the record format are not changed by the processing of the <span class="cmdname">Receive
|
|
File (RCVF)</span> command when this message is sent. You should monitor
|
|
for this message and perform the appropriate action for end of file. If you
|
|
attempt to run additional RCVF commands after end of file has been reached,
|
|
message CPF0864 is sent again.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="wfile.htm" title="Two types of files are supported in CL procedures and programs: display files and database files.">Work with files in CL procedures</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/rcvf.htm">Receive File (RCVF) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |