66 lines
4.5 KiB
HTML
66 lines
4.5 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="Example: Testing a power-handling CL program" />
|
||
|
<meta name="abstract" content="Once a power-handling program has been created, you can test it by creating a simple CL program that uses the Send Program Message (SNDPGMMSG) command and the Delay Job (DLYJOB) command. Set the DLY parameter value on the DLYJOB command to meet your testing needs." />
|
||
|
<meta name="description" content="Once a power-handling program has been created, you can test it by creating a simple CL program that uses the Send Program Message (SNDPGMMSG) command and the Delay Job (DLYJOB) command. Set the DLY parameter value on the DLYJOB command to meet your testing needs." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahrwrtpgmco.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahrxmppgmrx.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="rzahrtstpgmrx" />
|
||
|
<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>Example: Testing a power-handling CL program</title>
|
||
|
</head>
|
||
|
<body id="rzahrtstpgmrx"><a name="rzahrtstpgmrx"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: Testing a power-handling CL program</h1>
|
||
|
<div><p>Once a power-handling program has been created, you can test it
|
||
|
by creating a simple CL program that uses the Send Program Message (SNDPGMMSG)
|
||
|
command and the Delay Job (DLYJOB) command. Set the DLY parameter value on
|
||
|
the DLYJOB command to meet your testing needs.</p>
|
||
|
<div class="section"> <div class="note"><span class="notetitle">Note:</span> <ol><li>When testing an uninterruptible power supply program, commands such as
|
||
|
PWRDWNSYS, ENDJOB, and ENDSBS should be replaced with the SNDMSG command to
|
||
|
indicate that the command has run.</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="example"> <div class="fignone" id="rzahrtstpgmrx__x7fig8"><a name="rzahrtstpgmrx__x7fig8"><!-- --></a><span class="figcap">Figure 1. Testing a Power-Handling Program Example</span><pre>SEQNBR*...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7....
|
||
|
1.00 PGM
|
||
|
2.00 DLYJOB DLY(120) /* Wait for 2 minutes. */
|
||
|
3.00 SNDPGMMSG MSGID(CPF1816) MSGF(QCPFMSG) +
|
||
|
4.00 TOMSGQ(UPSLIB/UPSMSGQ) /* Power failure
|
||
|
5.00 message. */
|
||
|
6.00 DLYJOB DLY(5) /* Wait for 5 seconds. */
|
||
|
7.00 SNDPGMMSG MSGID(CPF1817) MSGF(QCPFMSG) +
|
||
|
8.00 TOMSGQ(UPSLIB/UPSMSGQ) /* Power restored
|
||
|
9.00 message. */
|
||
|
10.00 ENDPGM</pre>
|
||
|
</div>
|
||
|
<div class="note"><span class="notetitle">Note:</span> By using the code examples, you agree to the terms of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahrwrtpgmco.htm" title="A power-handling program should be activated at each IPL and remain active at all times. It should be accounted for in the activity level available in work management subsystem specifications.">Writing a power-handling program</a></div>
|
||
|
</div>
|
||
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
||
|
<div><a href="rzahrxmppgmrx.htm" title="You can use the sample program with a full uninterruptible power supply.">Example: Power-handling CL program</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|