ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalf_5.4.0.1/rzalfenvvariables.htm

77 lines
5.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="concept" />
<meta name="DC.Title" content="Work with environment variables" />
<meta name="abstract" content="i5/OS PASE environment variables are independent of ILE environment variables. Setting a variable in one environment has no effect on the other environment." />
<meta name="description" content="i5/OS PASE environment variables are independent of ILE environment variables. Setting a variable in one environment has no effect on the other environment." />
<meta name="DC.Relation" scheme="URI" content="rzalfrunning.htm" />
<meta name="DC.Relation" scheme="URI" content="rzalfrunning.htm" />
<meta name="DC.Relation" scheme="URI" content="rzalfrunning.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/qp2shell.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/qp2term.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/pase_systemcl.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/pase_environ.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzalfenvvariables" />
<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>Work with environment variables</title>
</head>
<body id="rzalfenvvariables"><a name="rzalfenvvariables"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Work with environment variables</h1>
<div><p><span class="keyword">i5/OS™</span> PASE environment
variables are independent of ILE environment variables. Setting a variable
in one environment has no effect on the other environment.</p>
<p>However, you can copy variables from ILE into <span class="keyword">i5/OS</span> PASE,
depending on the method you use to run your <span class="keyword">i5/OS</span> PASE
program.</p>
<div class="section"><h4 class="sectiontitle">Environment variables in an interactive <span class="keyword">i5/OS</span> PASE session</h4><p>ILE
environment variables are passed to <span class="keyword">i5/OS</span> PASE
only when it is started with QP2SHELL() and QP2TERM(). Use the Work with Environment
Variables (WRKENVVAR) command to change, add, or delete environment variables
as needed before starting <span class="keyword">i5/OS</span> PASE.</p>
</div>
<div class="section"><h4 class="sectiontitle">Environment variables in a called <span class="keyword">i5/OS</span> PASE session</h4><p>When <span class="keyword">i5/OS</span> PASE is started from a program
call (with the Qp2RunPase() API), you have complete control over the environment
variables. You can pass environment variables that bear no relationship to
the ILE environment from which you called the <span class="keyword">i5/OS</span> PASE
program.</p>
</div>
<div class="section"><h4 class="sectiontitle">Copy environment variables to ILE before
running a CL command</h4><p>You can copy <span class="keyword">i5/OS</span> PASE
environment variables to the ILE environment before you run a CL command using
an option on the systemCL() runtime function. This is also the
default behavior of the <span class="keyword">i5/OS</span> PASE <tt>system</tt> utility.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzalfrunning.htm" title="You can read this topic for information and examples about starting an i5/OS PASE program in a job, and calling i5/OS PASE procedures from your ILE programs.">Run i5/OS PASE programs and procedures</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzalfrunning.htm" title="You can read this topic for information and examples about starting an i5/OS PASE program in a job, and calling i5/OS PASE procedures from your ILE programs.">Run i5/OS PASE programs and procedures</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../apis/qp2shell.htm">QP2SHELL() and QP2SHELL2()--Run an i5/OS PASE Shell Program</a></div>
<div><a href="../apis/qp2term.htm">QP2TERM()--Run an i5/OS PASE Terminal Session</a></div>
<div><a href="../apis/pase_systemcl.htm">systemCL()--Run a CL Command for i5/OS PASE</a></div>
<div><a href="../apis/pase_environ.htm">i5/OS PASE environment variables</a></div>
</div>
</div>
</body>
</html>