70 lines
4.6 KiB
HTML
70 lines
4.6 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 system values" />
|
|
<meta name="abstract" content="A system value contains control information for the operation of certain parts of the system." />
|
|
<meta name="description" content="A system value contains control information for the operation of certain parts of the system." />
|
|
<meta name="DC.subject" content="variable, retrieving system value, value used as, RTVSYSVAL (Retrieve System Value) command, Retrieve System Value (RTVSYSVAL) command, command, CL, RTVSYSVAL (Retrieve System Value), Retrieve System Value (RTVSYSVAL), system value, retrieving" />
|
|
<meta name="keywords" content="variable, retrieving system value, value used as, RTVSYSVAL (Retrieve System Value) command, Retrieve System Value (RTVSYSVAL) command, command, CL, RTVSYSVAL (Retrieve System Value), Retrieve System Value (RTVSYSVAL), system value, retrieving" />
|
|
<meta name="DC.Relation" scheme="URI" content="valvz.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="svqtime.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="convd.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzakz/rzakz1.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="retsv" />
|
|
<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 system values</title>
|
|
</head>
|
|
<body id="retsv"><a name="retsv"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Retrieve system values</h1>
|
|
<div><p>A system value contains control information for the operation of
|
|
certain parts of the system. </p>
|
|
<div class="section"> <p>IBM<sup>®</sup> supplies
|
|
several types of system values. For example, QDATE and QTIME are date and
|
|
time system values, which you set when i5/OS™ is started.</p>
|
|
<p>You can bring system
|
|
values into your procedure and manipulate them as variables using the <span class="cmdname">Retrieve
|
|
System Value (RTVSYSVAL)</span> command: </p>
|
|
<pre>RTVSYSVAL SYSVAL(system-value-name) RTNVAR(CL-variable-name)</pre>
|
|
<p>The RTNVAR parameter specifies the name of the variable in
|
|
your CL procedure that is to receive the value of the system value.</p>
|
|
<p>The
|
|
type of the variable must match the type of the system value. For character
|
|
and logical system values, the length of the CL variable must equal the length
|
|
of the value. For decimal values, the length of the variable must be greater
|
|
than or equal to the length of the system value.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="svqtime.htm">Example: Retrieve QTIME system value</a></strong><br />
|
|
In this example, QTIME is received and moved to a variable, which is then compared with another variable.</li>
|
|
<li class="ulchildlink"><strong><a href="convd.htm">QDATE system value</a></strong><br />
|
|
In many applications, you may want to use the current date in your procedure by retrieving the system value QDATE and placing it in a variable. You may also want to change the format of that date for use in your procedure.</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="../rzakz/rzakz1.htm">System values</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |