69 lines
4.9 KiB
HTML
69 lines
4.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="copyright" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
|
|
<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="Resending copy file completion message" />
|
|
<meta name="abstract" content="If you run a COPY command from a CL program, the completion message indicating the number of records that are copied is not sent directly to the system operator. You can direct this message to the system operator by resending it." />
|
|
<meta name="description" content="If you run a COPY command from a CL program, the completion message indicating the number of records that are copied is not sent directly to the system operator. You can direct this message to the system operator by resending it." />
|
|
<meta name="DC.subject" content="Copy File (CPYF) command, resending completion message CL program example, CPYF (Copy File) command, resending completion message CL program example, copy command, resending completion message CL program example, copying file, resending completion message CL program example, completion message, resending for Copy File command, messages sent, example, resending CPYF command completion message" />
|
|
<meta name="keywords" content="Copy File (CPYF) command, resending completion message CL program example, CPYF (Copy File) command, resending completion message CL program example, copy command, resending completion message CL program example, copying file, resending completion message CL program example, completion message, resending for Copy File command, messages sent, example, resending CPYF command completion message" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3bcfuc.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3rcfcm" />
|
|
<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> Resending copy file completion message</title>
|
|
</head>
|
|
<body id="rbal3rcfcm"><a name="rbal3rcfcm"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1"> Resending copy file completion message</h1>
|
|
<div><p>If you run a COPY command from a CL program, the completion message
|
|
indicating the number of records that are copied is not sent directly to the
|
|
system operator. You can direct this message to the system operator by resending
|
|
it.</p>
|
|
<p>The following example is a sample CL program that resends
|
|
the COPY command using the <a href="../cl/sndpgmmsg.htm">SNDPGMMSG</a> command.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> By using the code example, you agree to the terms of
|
|
the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
|
<div class="p"><pre>PGM
|
|
DCL &MSGID TYPE(*CHAR) LEN(7)
|
|
DCL &MSGDTA TYPE(*CHAR) LEN(82)
|
|
CPYF FROMFILE(LIB1/XXX) TOFILE(LIB2/XXX) +
|
|
MBROPT(*ADD)
|
|
RCVMSG MSGID(&MSGID) MSGDTA(&MSGDTA) +
|
|
MSGTYPE(*COMP) RMV(*NO)
|
|
SNDPGMMSG MSGID(&MSGID) MSGF(QCPFMSG) +
|
|
MSGTYPE(*INFO) TOMSGQ(QSYSOPR) +
|
|
MSGDTA(&MSGDTA)
|
|
ENDPGM</pre>
|
|
</div>
|
|
<div class="p">The copy function sends one of the following completion messages for each
|
|
from-file member/label successfully copied to the to-file: <ul><li>CPC2955 is the normal copy completion message.</li>
|
|
<li>CPC2956 is used when COMPRESS(*NO) is specified.</li>
|
|
<li>CPC2957 indicates that no records were copied.</li>
|
|
<li>CPC2954 is sent as a second completion message after the CPC2955, CPC2956,
|
|
or CPC2957 completion message is sent, when you have specified MBROPT(*UPDADD).
|
|
It will indicate the number of records that were updated.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3bcfuc.htm" title="You can copy from a physical or logical database file, open query file, diskette file, tape file, or inline data file. The to-file can be a physical database file, diskette file, tape file, program-described printer file, or *PRINT.">Copy files: basic functions</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |