276 lines
9.8 KiB
HTML
276 lines
9.8 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Submit Finance Job (SBMFNCJOB)</title>
|
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
<body bgcolor="white">
|
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<a name="SBMFNCJOB.Top_Of_Page"></a>
|
|
<h2>Submit Finance Job (SBMFNCJOB)</h2>
|
|
<table width="100%">
|
|
<tr>
|
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
|
<b>Threadsafe: </b>No
|
|
</td>
|
|
<td valign="top" align="right">
|
|
<a href="#SBMFNCJOB.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#SBMFNCJOB.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#SBMFNCJOB.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="SBMFNCJOB"></a>
|
|
<p>The Submit Finance Job (SBMFNCJOB) command submits a batch job that lets your finance application programs communicate with your 4701 or 4702 controller application programs.
|
|
</p>
|
|
<p>Use the SBMFNCJOB command only if:
|
|
</p>
|
|
<ul>
|
|
<li>Communicating with a 4701 or 4702 control unit
|
|
</li>
|
|
<li>A device table and a program table have been defined using the Work with Device Table (WRKDEVTBL) and Work with Program Table (WRKPGMTBL) commands; defining a user table using the Work with User Table (WRKUSRTBL) command is optional
|
|
</li>
|
|
<li>The user's 4701 or 4702 control unit application program sends data (transactions) first and expects a response
|
|
</li>
|
|
<li>The user's 4701 or 4702 control unit application program passes data in the proper format
|
|
</li>
|
|
</ul>
|
|
<p><b>Restriction:</b> This command is shipped with public *EXCLUDE authority.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="SBMFNCJOB.PARAMETERS.TABLE">Parameters</a></h3>
|
|
<table border="1" cellpadding="4" cellspacing="0">
|
|
<!-- col1="10" col2="15" col3="30" col4="10" -->
|
|
<tr>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
|
|
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#SBMFNCJOB.DEVTBL"><b>DEVTBL</b></a></td>
|
|
<td valign="top">Device table</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
<td valign="top">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#SBMFNCJOB.PGMTBL"><b>PGMTBL</b></a></td>
|
|
<td valign="top">Program table</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
<td valign="top">Required, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#SBMFNCJOB.USRTBL"><b>USRTBL</b></a></td>
|
|
<td valign="top">User table</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*NONE</u></b></td>
|
|
<td valign="top">Optional, Positional 3</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#SBMFNCJOB.JOB"><b>JOB</b></a></td>
|
|
<td valign="top">Job name</td>
|
|
<td valign="top"><i>Name</i>, <b><u>QFNCJOB</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#SBMFNCJOB.JOBD"><b>JOBD</b></a></td>
|
|
<td valign="top">Job description</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Job description</td>
|
|
<td valign="top"><i>Name</i>, <b><u>QFNC</u></b></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr><tr>
|
|
<td valign="top" rowspan="3"><a href="#SBMFNCJOB.MSGQ"><b>MSGQ</b></a></td>
|
|
<td valign="top">Message queue</td>
|
|
<td valign="top">Single values: <b><u>*WRKSTN</u></b>, *NONE<br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Message queue</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr></table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="SBMFNCJOB.DEVTBL"></a>
|
|
<h3>Device table (DEVTBL)</h3>
|
|
<p>Specifies the name of the device table that the finance job uses to determine which 4704 or 3624 devices it controls. This is a required parameter.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="SBMFNCJOB.PGMTBL"></a>
|
|
<h3>Program table (PGMTBL)</h3>
|
|
<p>Specifies the name of the program table that the finance job uses to determine, from the program ID (sent in the data stream with a finance transaction), which user program names will process the finance transaction. This is a required parameter.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="SBMFNCJOB.USRTBL"></a>
|
|
<h3>User table (USRTBL)</h3>
|
|
<p>Specifies the name of the user table that the finance job uses to verify a valid user when a finance sign-on is received.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>No user IDs are verified.
|
|
</dd>
|
|
<dt><b><i>user-table-name</i></b></dt>
|
|
<dd>Specify the name of a user table that defines user IDs for the 4700 device.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="SBMFNCJOB.JOB"></a>
|
|
<h3>Job name (JOB)</h3>
|
|
<p>Specifies the job name that is associated with the submitted finance job.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>QFNCJOB</u></b></dt>
|
|
<dd>The job name is submitted as QFNCJOB.
|
|
</dd>
|
|
<dt><b><i>job-name</i></b></dt>
|
|
<dd>Specify the user-defined job name that is associated with the submitted finance job.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="SBMFNCJOB.JOBD"></a>
|
|
<h3>Job description (JOBD)</h3>
|
|
<p>Specifies the name and library of the job description that is used by the finance job.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*QFNC</u></b></dt>
|
|
<dd>The submitted finance job uses the job description QFNC.
|
|
</dd>
|
|
<dt><b><i>job-description-name</i></b></dt>
|
|
<dd>Specify the name and library of a job description that is used by the finance job. (If no library name is given, the job description is found through the library list used by the job in which the Submit Finance Job (SBMFNCJOB) command is entered.
|
|
<p>The possible library values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>
|
|
<p>The library list is used to locate the finance job.
|
|
</p>
|
|
</dd>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>
|
|
<p>The current library for the job is used to locate the finance job. If no library is specified as the library for the job, QGPL is used.
|
|
</p>
|
|
</dd>
|
|
<dt><b><i>library-name</i></b></dt>
|
|
<dd>
|
|
<p>Specify the name of the library where the finance job is located.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="SBMFNCJOB.MSGQ"></a>
|
|
<h3>Message queue (MSGQ)</h3>
|
|
<p>Specifies the name of the message queue, to which messages can be sent while the finance job is running.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>WRKSTN</u></b></dt>
|
|
<dd>The finance messages are sent to the message queue of the work station from which the finance job was submitted.
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>No finance messages are sent to a message queue.
|
|
</dd>
|
|
<dt><b><i>message-queue-name</i></b></dt>
|
|
<dd>Specify the name and library of the user-defined message queue to which messages are sent. (If no library name is given, the library list of the job issuing the Submit Finance Job (SBMFNCJOB) command is used to find the queue.)
|
|
<p>The possible library values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>The library list is used to find the name of the message queue.
|
|
</dd>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is used to find the name of the message queue. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>library-name</i></b></dt>
|
|
<dd>Specify the name of the library where the name of the message queue is located.
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="SBMFNCJOB.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Submitting a Batch Job that Communicates with Devices it Acquires</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
SBMFNCJOB DEVTBL(DEVTBL1) PGMTBL(PGMTBL1) USRTBL(USRTBL1)
|
|
</pre>
|
|
</p>
|
|
<p>This command submits batch job QFNCJOB. The job communicates with all devices it acquires from device table DEVTBL1, allowing users whose user IDs are found in USRTBL1 to sign on the devices. Each transaction sent by the finance devices is processed by determining, in PGMTBL1, which application program must be called, then it calls that program.
|
|
</p>
|
|
<p>The job description used by the finance job in this example is QFNC. Messages sent as a result of the finance job are sent to the message queue of the work station from which the job was submitted.
|
|
</p>
|
|
<p><b>Example 2: User IDs Not Verified</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
SBMFNCJOB DEVTBL(DEVTBL2) PGMTBL(PGMTBL2)
|
|
JOB(CTFJOB) JOBD(CTFJOBD) MSGQ(*NONE)
|
|
</pre>
|
|
</p>
|
|
<p>This command submits batch job CTFJOB. CTFJOB runs under job description CTFJOBD and does not send messages to any work station message queue while running. No verification of user IDs is performed by the finance job.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="SBMFNCJOB.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF8382</b></dt>
|
|
<dd>Finance job cannot be processed.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#SBMFNCJOB.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|