89 lines
5.0 KiB
HTML
89 lines
5.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 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="Create an object from source statements in a batch job" />
|
|
<meta name="abstract" content="If your create command is contained in a batch job, you can use an inline data file as the source file for the command." />
|
|
<meta name="description" content="If your create command is contained in a batch job, you can use an inline data file as the source file for the command." />
|
|
<meta name="DC.subject" content="object, creating from source statement in a batch job" />
|
|
<meta name="keywords" content="object, creating from source statement in a batch job" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbafocousf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../dm/rbal3kickoff.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="rbafosrccb" />
|
|
<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>Create an object from source statements in a batch job</title>
|
|
</head>
|
|
<body id="rbafosrccb"><a name="rbafosrccb"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Create an object from source statements in a batch job</h1>
|
|
<div><p>If your create command is contained in a batch job, you can use
|
|
an inline data file as the source file for the command.</p>
|
|
<p>However, inline data files used as a source file should not exceed 10,000
|
|
records. The inline data file can be either named or unnamed. Named inline
|
|
data files have a unique file name that is specified on the //DATA command.
|
|
For more information about inline data files, see the Database file management
|
|
topic.</p>
|
|
<div class="p">Unnamed inline data files are files without unique file names; they are
|
|
all named QINLINE. The following is an example of an inline data file used
|
|
as a source file: <pre>//BCHJOB
|
|
CRTPF FILE(DSTPRODLB/ORD199) SRCFILE(QINLINE)
|
|
//DATA FILETYPE(*SRC)
|
|
.
|
|
. (source statements)
|
|
.
|
|
//
|
|
//ENDBCHJOB</pre>
|
|
</div>
|
|
<p>In this example, no file name was specified on the //DATA command. An unnamed
|
|
spooled file was created when the job was processed by the spooling reader.
|
|
The CRTPF command must specify QINLINE as the source file name to access the
|
|
unnamed file. The //DATA command also specifies that the inline file is a
|
|
source file (*SRC specified for the FILETYPE parameter).</p>
|
|
<div class="p">If you specify a file name on the //DATA command, you must specify the
|
|
same name on the SRCFILE parameter on the CRTPF command. For example: <pre>//BCHJOB
|
|
CRTPF FILE(DSTPRODLB/ORD199) SRCFILE(ORD199)
|
|
//DATA FILE(ORD199) FILETYPE(*SRC)
|
|
.
|
|
. (source statements)
|
|
.
|
|
//
|
|
//ENDBCHJOB</pre>
|
|
</div>
|
|
<p>If a program uses an inline file, the system searches for the first inline
|
|
file of the specified name. If that file cannot be found, the program uses
|
|
the first file that is unnamed (QINLINE).</p>
|
|
<p>If you do not specify a source file name on a create command, an IBM-supplied
|
|
source file is assumed to contain the needed source data. For example, if
|
|
you are creating a control language (CL) program but you did not specify a
|
|
source file name, the IBM-supplied source file QCLSRC is used. You must have
|
|
placed the source data in QCLSRC.</p>
|
|
<p>If a source file is a database file, you can specify a source member that
|
|
contains the needed source data. If you do not specify a source member, the
|
|
source data must be in a member that has the same name as the object being
|
|
created.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafocousf.htm" title="You can use a create command to create an object using a source file. If you create an object using a source file, you can specify the name of the source file on the create command.">Create an object using a source file</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="../dm/rbal3kickoff.htm">Database file management</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |