84 lines
4.4 KiB
HTML
84 lines
4.4 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="Batch entry" />
|
|
<meta name="abstract" content="You can create CL source, a CL module, and a program in one batch input stream." />
|
|
<meta name="description" content="You can create CL source, a CL module, and a program in one batch input stream." />
|
|
<meta name="DC.subject" content="batch entry, entry, batch, CL procedure, prompter, help" />
|
|
<meta name="keywords" content="batch entry, entry, batch, CL procedure, prompter, help" />
|
|
<meta name="DC.Relation" scheme="URI" content="creat.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/sbmjob.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/cpyf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtclmod.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="batch" />
|
|
<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>Batch entry</title>
|
|
</head>
|
|
<body id="batch"><a name="batch"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Batch entry</h1>
|
|
<div><p>You can create CL source, a CL module, and a program in one batch
|
|
input stream. </p>
|
|
<div class="section"> <p>The following example shows the basic parts of the input stream.
|
|
The input is submitted to a job queue using the <span class="cmdname">Submit Job (SBMJOB)</span> command.
|
|
The input stream should follow this format: </p>
|
|
<pre>// BCHJOB
|
|
CRTBNDCL PGM(QGPL/EDUPGM) SRCFILE(PERLIST)
|
|
// DATA FILE(PERLIST) FILETYPE(*SRC)
|
|
.
|
|
. (CL Procedure Source)
|
|
.
|
|
//
|
|
/*
|
|
// ENDINP</pre>
|
|
<p>This stream creates a program from inline source. If you want
|
|
to keep the source inline, a <span class="cmdname">Copy File (CPYF)</span> command could
|
|
be used to copy the source into a database file. The program could then be
|
|
created using the database file.</p>
|
|
<p>You can also create a CL module directly
|
|
from CL source on external media, such as tape, using an IBM-supplied device
|
|
file. The IBM-supplied tape source file is QTAPSRC. Assume, for instance,
|
|
that the CL source statements are in a source file on tape named PGMA.</p>
|
|
<p>The
|
|
first step is to identify the location of the source on tape by using the
|
|
following override command with LABEL attribute override: </p>
|
|
<pre>OVRTAPF FILE(QTAPSRC) LABEL(PGMA)</pre>
|
|
<p>Now you can consider the QTAPSRC file as the source file on
|
|
the <span class="cmdname">Create CL Module (CRTCLMOD)</span> command. To create the
|
|
CL module based on the source input from the tape file, enter the following
|
|
command: </p>
|
|
<pre>CRTCLMOD MODULE(QGPL/PGMA) SRCFILE(QTAPSRC)</pre>
|
|
<p>When the CRTCLMOD command is processed, it treats the QTAPSRC
|
|
source file like any database source file. Using the override, the source
|
|
is located on tape. PGMA is created in QGPL, and the source for that module
|
|
remains on tape.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="creat.htm" title="All programs are created in steps.">Create a CL procedure</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/sbmjob.htm">Submit Job (SBMJOB) command</a></div>
|
|
<div><a href="../cl/cpyf.htm">Copy File (CPYF) command</a></div>
|
|
<div><a href="../cl/crtclmod.htm">Create CL Module (CRTCLMOD) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |