ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/wcppg.htm

81 lines
5.4 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="Write a command processing program or procedure" />
<meta name="abstract" content="A command processing program (CPP) is a program that processes a command. This program performs some validity checking and processes the command so that the requested function is performed." />
<meta name="description" content="A command processing program (CPP) is a program that processes a command. This program performs some validity checking and processes the command so that the requested function is performed." />
<meta name="DC.subject" content="program, writing command processing program, writing command processing procedure, writing validity checking, command, CL, processing program (CPP), writing, command processing program (CPP), CPP (command processing program)" />
<meta name="keywords" content="program, writing command processing program, writing command processing procedure, writing validity checking, command, CL, processing program (CPP), writing, command processing program (CPP), CPP (command processing program)" />
<meta name="DC.Relation" scheme="URI" content="defcm.htm" />
<meta name="DC.Relation" scheme="URI" content="wcpclhll.htm" />
<meta name="DC.Relation" scheme="URI" content="wcprexx.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtcmd.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/call.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/strrexprc.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="wcppg" />
<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>Write a command processing program or procedure</title>
</head>
<body id="wcppg"><a name="wcppg"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Write a command processing program or procedure</h1>
<div><p>A command processing program (CPP) is a program that processes
a command. This program performs some validity checking and processes the
command so that the requested function is performed. </p>
<div class="section"> <p>A command processing program (CPP) can be a CL or HLL program,
or a REXX procedure. Programs written in CL or HLL can also be called directly
with the <span class="cmdname">Call (CALL)</span> command. REXX procedures can be called
directly using the <span class="cmdname">Start REXX Procedure (STRREXPRC)</span> command.
The command processing program does not need to exist when the <span class="cmdname">Create
Command (CRTCMD)</span> command is run. If *LIBL is used as the library
qualifier, the library list is used to find the command processing program
when the created command is run.</p>
<p>Messages issued as a result of running
the command processing program can be sent to the job message queue and automatically
displayed or printed. You can send displays to the requesting display station.
</p>
<div class="note"><span class="notetitle">Note:</span> <ol><li>The parameters defined on the command are passed individually in the order
they were defined (the PARM statement order).</li>
<li>Decimal values are passed to HLL and CL programs as packed decimal values
of the length specified in the PARM statement.</li>
<li>Character, name, and logical values are passed to HLL and CL programs
as a character string of the length defined in the PARM statement.</li>
</ol>
</div>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="wcpclhll.htm">CL or HLL command processing program</a></strong><br />
This topic describes the command processing program for CL or HLL.</li>
<li class="ulchildlink"><strong><a href="wcprexx.htm">REXX command processing procedure</a></strong><br />
This topic describes the REXX command processing procedure.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="defcm.htm" title="This describes how you can define and create your own commands.">Define commands</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../cl/crtcmd.htm">Create Command (CRTCMD) command</a></div>
<div><a href="../cl/call.htm">Call (CALL) command</a></div>
<div><a href="../cl/strrexprc.htm">Start REXX Procedure (STRREXPRC) command</a></div>
</div>
</div>
</body>
</html>