ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbafocpyoqf.htm

70 lines
5.1 KiB
HTML
Raw 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="concept" />
<meta name="DC.Title" content="Copy from an open query file" />
<meta name="abstract" content="The Copy from Query File (CPYFRMQRYF) command can be used to copy from an open query file to another file or to print a formatted listing of the records." />
<meta name="description" content="The Copy from Query File (CPYFRMQRYF) command can be used to copy from an open query file to another file or to print a formatted listing of the records." />
<meta name="DC.subject" content="Open Query File (OPNQRYF) command, using, copying, OPNQRYF (Open Query File) command, command, CL, CPYFRMQRYF (Copy from Query File), Copy from Query File (CPYFRMQRYF), query file" />
<meta name="keywords" content="Open Query File (OPNQRYF) command, using, copying, OPNQRYF (Open Query File) command, command, CL, CPYFRMQRYF (Copy from Query File), Copy from Query File (CPYFRMQRYF), query file" />
<meta name="DC.Relation" scheme="URI" content="rbafoothrtcons.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafocpyoqfex1.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafocpyoqfex2.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafocpyoqfex3.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafocpyoqfex4.htm" />
<meta name="DC.Relation" scheme="URI" content="../dm/rbal3kickoff.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="rbafocpyoqf" />
<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>Copy from an open query file</title>
</head>
<body id="rbafocpyoqf"><a name="rbafocpyoqf"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Copy from an open query file</h1>
<div><p>The Copy from Query File (CPYFRMQRYF) command can be used to copy
from an open query file to another file or to print a formatted listing of
the records.</p>
<p>Any open query file, except those using distributed data management (DDM)
files, specified with the input, update, or all operation value on the FILE
parameter of the Open Query File (OPNQRYF) command can be copied using the
CPYFRMQRYF command. The CPYFRMQRYF command cannot be used to copy to logical
files.</p>
<p>Although the CPYFRMQRYF command uses the open data path of the open query
file, it does not open the file. Consequently, you do not have to specify
SHARE(*YES) for the database file you are copying.</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafocpyoqfex1.htm">Example 1: Copy from an open query file</a></strong><br />
This example shows how to build a file with a subset of records using the Open Query File (OPNQRYF) and Copy from Query File (CPYFRMQRYF) commands.</li>
<li class="ulchildlink"><strong><a href="rbafocpyoqfex2.htm">Example 2: Copy from an open query file</a></strong><br />
This example shows how to print records based on selection using the Open Query File (OPNQRYF) and Copy from Query File (CPYFRMQRYF) commands.</li>
<li class="ulchildlink"><strong><a href="rbafocpyoqfex3.htm">Example 3: Copy from an open query file</a></strong><br />
This example shows how to copy a subset of records to a diskette using the Open Query File (OPNQRYF) and Copy from Query File (CPYFRMQRYF) commands.</li>
<li class="ulchildlink"><strong><a href="rbafocpyoqfex4.htm">Example 4: Copy from an open query file</a></strong><br />
This example shows how to create a copy of the output of a dynamic join using the Open Query File (OPNQRYF) and Copy from Query File (CPYFRMQRYF) commands.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafoothrtcons.htm" title="Read other runtime considerations for the Open Query File (OPNQRYF) command, including overrides and copying from an open query file.">Other runtime considerations for the Open Query File (OPNQRYF) command</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../dm/rbal3kickoff.htm">Database file management</a></div>
</div>
</div>
</body>
</html>