108 lines
6.1 KiB
HTML
108 lines
6.1 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="topic" />
|
||
|
<meta name="DC.Title" content="Put environment variable with CCSID (QzsrPutEnvCCSID) API" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rzaieapi_qzhbcgiutils" />
|
||
|
<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>Put environment variable with CCSID (QzsrPutEnvCCSID) API</title>
|
||
|
</head>
|
||
|
<body id="rzaieapi_qzhbcgiutils"><a name="rzaieapi_qzhbcgiutils"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<!--Java sync-link--><h1 class="topictitle1">Put environment variable with CCSID (QzsrPutEnvCCSID) API</h1>
|
||
|
<div><div class="important"><span class="importanttitle">Important:</span> Information
|
||
|
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
|
||
|
It is recommended that you install the latest PTFs to upgrade to the latest
|
||
|
level of the HTTP Server for i5/OS. Some of the topics documented here are
|
||
|
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
|
||
|
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" class="figborder" frame="void" border="0" rules="none"><tbody><tr><td colspan="3" valign="top">Required parameter group:</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="33.42318059299191%">Environment string</td>
|
||
|
<td valign="top" width="33.153638814016176%">Input</td>
|
||
|
<td valign="top" width="33.42318059299191%">Char(*)</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="33.42318059299191%">Lenth of environment string</td>
|
||
|
<td valign="top" width="33.153638814016176%">Input</td>
|
||
|
<td valign="top" width="33.42318059299191%">Binary(4)</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="33.42318059299191%">CCSID of environment string</td>
|
||
|
<td valign="top" width="33.153638814016176%">Input</td>
|
||
|
<td valign="top" width="33.42318059299191%">Binary(4)</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="33.42318059299191%">Error code</td>
|
||
|
<td valign="top" width="33.153638814016176%">I/O</td>
|
||
|
<td valign="top" width="33.42318059299191%">Char(*)</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<p>The <em>QzsrPutEnvCCSID</em> API allows you to set or create a job-level
|
||
|
environment variable. This is useful for communication between programs running
|
||
|
in the same job, such as your program and the Net.Data<sup>®</sup> language environment DTW_SYSTEM.
|
||
|
CCSID support allows you to specify the encoding of the environment string. </p>
|
||
|
</div>
|
||
|
<div class="nested1" id="required"><a name="required"><!-- --></a><h2 class="topictitle2">Required parameter group</h2>
|
||
|
<div><dl><dt class="dlterm"><strong>Environment string</strong></dt>
|
||
|
<dd>INPUT:CHAR(*) <p>The input string of the form: <tt><em>envVar</em>=<em>value</em></tt>.
|
||
|
Where <em>envVar</em> is the name of the new or existing environment variable,
|
||
|
and <em>value</em> is the value you want to set the environment variable. They
|
||
|
are both case sensitive. The API expects this value to be in the CCSID of
|
||
|
the environment string. </p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl><dt class="dlterm"><strong>Length of environment string</strong></dt>
|
||
|
<dd>INPUT:BINARY(4)<p>The input variable that contains the length of the environment
|
||
|
string parameter (without trailing blanks). For example, the length of the
|
||
|
environment string <tt>envVar=value</tt> is twelve. </p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl><dt class="dlterm"><strong>CCSID environment string</strong></dt>
|
||
|
<dd>INPUT:BINARY(4)<div class="p">The CCSID to be used for the encoding of the environment
|
||
|
string. The valid values for this parameter are: <ul><li><strong>0 </strong>: The CCSID of the environment string.</li>
|
||
|
<li><strong>1-65533 </strong>: A valid CCSID in this range must be specified or an error
|
||
|
is returned. </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl><dt class="dlterm"><strong>Error code</strong></dt>
|
||
|
<dd>I/O:CHAR(*)<p>The structure in which to return error information. Error
|
||
|
messages are added to the error log or script log except for those listed
|
||
|
below. For the format of the structure and for details on how to process API
|
||
|
errors, see the API error reporting topic in the iSeries™ Information Center. </p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="nested1" id="error"><a name="error"><!-- --></a><h2 class="topictitle2">Error messages</h2>
|
||
|
<div><dl><dt class="dlterm"><strong>CPF24B4 E</strong></dt>
|
||
|
<dd>Severe error while addressing parameter list.</dd>
|
||
|
</dl>
|
||
|
<dl><dt class="dlterm"><strong>CPF3CF1 E</strong></dt>
|
||
|
<dd>Error code parameter not valid.</dd>
|
||
|
</dl>
|
||
|
<div class="note"><span class="notetitle">Note:</span> The Environment Variable APIs provide the putenv() (Put Value in Environment
|
||
|
Variable) function necessary to set (or create and set) an environment variable.
|
||
|
Programs that need CCSID conversion support for environment variables should
|
||
|
use the QzsrPutEnvCCSID() API. See also <a href="rzaieapi_qzsrgetenvccsid.htm">Get environment variable with CCSID (QzsrGetEnvCCSID) API</a>.</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|