79 lines
4.3 KiB
HTML
79 lines
4.3 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="Retrieve job attributes" />
|
|
<meta name="abstract" content="You can retrieve the job attributes and place their values in a CL variable to control your applications." />
|
|
<meta name="description" content="You can retrieve the job attributes and place their values in a CL variable to control your applications." />
|
|
<meta name="DC.subject" content="RTVJOBA (Retrieve Job Attributes) command, Retrieve Job Attributes (RTVJOBA) command" />
|
|
<meta name="keywords" content="RTVJOBA (Retrieve Job Attributes) command, Retrieve Job Attributes (RTVJOBA) command" />
|
|
<meta name="DC.Relation" scheme="URI" content="valvz.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rtvjo.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/rtvjoba.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="retja" />
|
|
<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>Retrieve job attributes</title>
|
|
</head>
|
|
<body id="retja"><a name="retja"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Retrieve job attributes</h1>
|
|
<div><p>You can retrieve the job attributes and place their values in a
|
|
CL variable to control your applications.</p>
|
|
<div class="section"> <p>Job attributes are retrieved using the <span class="cmdname">Retrieve Job
|
|
Attribute (RTVJOBA)</span> command. You can retrieve all job attributes,
|
|
or any combination of them, with the <span class="cmdname">Retrieve Job Attribute (RTVJOBA)</span> command.</p>
|
|
<p>In
|
|
the following CL procedure, a <span class="cmdname">Retrieve Job Attribute (RTVJOBA)</span> command
|
|
retrieves the name of the user who called the procedure. </p>
|
|
<pre> PGM
|
|
/* ORD410C Order entry program */
|
|
DCL &CLKNAM TYPE(*CHAR) LEN(10)
|
|
DCL &NXTPGM TYPE(*CHAR) LEN(3)
|
|
.
|
|
.
|
|
.
|
|
RTVJOBA USER(&CLKNAM)
|
|
BEGIN: CALL ORD410S2 PARM(&NXTPGM &CLKNAM)
|
|
/* Customer prompt */
|
|
IF (&NXTPGM *EQ 'END') THEN(RETURN)
|
|
.
|
|
.
|
|
.</pre>
|
|
<p>The variable &CLKNAM, in which the user name is to be passed,
|
|
is first declared using a DCL command. The <span class="cmdname">Retrieve Job Attribute
|
|
(RTVJOBA)</span> command follows the declare commands. When
|
|
the program ORD410S2 is called, two variables, &NXTPGM and &CLKNAM,
|
|
are passed to it. &NXTPGM is passed as blanks but could be changed by
|
|
ORD410S2.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rtvjo.htm">Example: Use RTVJOBA</a></strong><br />
|
|
This is an example of retrieving job attributes.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="valvz.htm" title="This addresses how to retrieve values such as system values and job attributes to use as variables in a procedure. Note that not every possible retrieve value is included.">Retrieve values that can be used as variables</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/rtvjoba.htm">Retrieve Job Attributes (RTVJOBA) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |