ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaef_5.4.0.1/rzaefbatch.htm

63 lines
4.0 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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" 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. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
<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="keywords" content="using connections for, batch jobs, in batch jobs,
connections, on NetWare printers, connection example, printing" />
<title>Details: Connections in a batch job or printing</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="batch"></a>
<h4 id="batch">Details: Connections in a batch job or printing</h4><a id="idx48" name="idx48"></a><a id="idx49" name="idx49"></a><a id="idx50" name="idx50"></a>
<p>You can use connections in a batch job or for printing. However, doing
this involves special considerations:</p>
<ul>
<li>Whether or not an authentication entry for the wanted tree or server exists
for the iSeries&trade; user profile under which the job will run.</li>
<li>Whether or not there is a password.</li>
<li>Whether or not QNetWare file system access is required.</li></ul>
<p>If an authentication entry exists for the iSeries user profile under which the job will
run, and the profile contains the correct NetWare user name and password, the
system can start the necessary connections. No special action is required.</p>
<p>If no authentication entry exists, or there is no password in the authentication
entry, you must <a href="rzaefstrcnn.htm#strcnn">start a connection</a> manually in one
authentication entry. To start this connection manually, you have two options: </p>
<ol type="1">
<li>From an interactive job, use the STRNTWCNN command, specifying the batch
job's iSeries user profile and an authorized job value of *ANY. For example:
<pre class="xmp">STRNTWCNN SERVER(X) AUTUSR(batch-usrprf) AUTJOB(*ANY)
PASSWORD(XXX)</pre><span class="bold">or</span>
<pre class="xmp">STRNTWCNN SERVER(X) AUTUSR(batch-usrprf) AUTJOB(*ANY)
NDSCTX(XXX) NTWUSER(XXX) PASSWORD(XXX)</pre></li>
<li>Have the batch job start the connection, but specifying AUTUSR(*CURRENT)
and AUTJOB(*) (these are the command defaults). For example:
<pre class="xmp">STRNTWCNN SERVER(X) NTWUSER(XXX) PASSWORD(XXX)</pre></li></ol>
<p>The QNetWare file system requires a connection for the current job (AUTJOB(*)). This
means that to access the QNetWare file system from a batch job, you must either: </p>
<ul>
<li>Have an <a href="rzaefauthenentry.htm#authenentry">authentication entry</a> in the batch
user profile that contains the correct password. (This requires you to enable iSeries to save passwords (see <a href="rzaefqret.htm#qret">Enable iSeries to automatically start authenticated connections</a>))</li>
<li>Have the batch job start the connection, specifying AUTJOB(*) as described
above.</li></ul>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>