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

67 lines
4.0 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="task" />
<meta name="DC.Title" content="Use QCMDEXC with prompting in CL procedures and programs" />
<meta name="abstract" content="The QCMDEXC program may be used to call the prompter." />
<meta name="description" content="The QCMDEXC program may be used to call the prompter." />
<meta name="DC.subject" content="prompting, in CL procedure, with QCMDEXC, QCMDEXC program, call prompter" />
<meta name="keywords" content="prompting, in CL procedure, with QCMDEXC, QCMDEXC program, call prompter" />
<meta name="DC.Relation" scheme="URI" content="allow.htm" />
<meta name="DC.Relation" scheme="URI" content="prmpt.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/qcmdexc.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="qcaex" />
<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>Use QCMDEXC with prompting in CL procedures and programs</title>
</head>
<body id="qcaex"><a name="qcaex"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use QCMDEXC with prompting in CL procedures and programs</h1>
<div><p>The QCMDEXC program may be used to call the prompter. </p>
<div class="section"> <p>This use of QCMDEXC with prompting in CL procedures and programs
allows you to alter all values on the command except the command name itself.
This is more flexible than direct use of the prompter, where you can only
enter values not specified in the source (see previous section). If the prompter
is called directly with a command such as: </p>
<pre>?OVRDBF FILE(FILEX)</pre>
<p>you can specify a value for any parameter except
FILE. However, if the command is called during processing of a program using
the QCMDEXC program, such as in the following example, you can specify a value
for any parameter, including FILE. In this example, FILEX is the default.:
</p>
<pre>CALL QCMDEXC PARM('?OVRDBF FILE(FILEX)' 19)</pre>
<p>Prompting with modifiable specified values may also be accomplished
using selective prompting as described earlier in this chapter. However, each
keyword must be explicitly selected. The prompter is called directly with
a command such as: </p>
<pre>OVRDBF ??FILE(FILEX) ??TOFILE(*N) ??MBR(*N)</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="allow.htm" title="You can prompt the workstation user for input to a CL procedure or program.">Prompt for user input at runtime</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="prmpt.htm" title="You can request prompting within the interactive processing of a CL procedure or program.">Use the i5/OS prompter within a CL procedure or program</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../apis/qcmdexc.htm">Execute Commands (QCMDEXC) API</a></div>
</div>
</div>
</body>
</html>