76 lines
5.1 KiB
HTML
76 lines
5.1 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 using a source file" />
|
||
|
<meta name="abstract" content="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." />
|
||
|
<meta name="description" content="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." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafochsrc.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafosrccb.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforlsao.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafosrcibm.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="rbafocousf" />
|
||
|
<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 using a source file</title>
|
||
|
</head>
|
||
|
<body id="rbafocousf"><a name="rbafocousf"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Create an object using a source file</h1>
|
||
|
<div><p>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.</p>
|
||
|
<p>For example, to create a control language program, you use the Create Control
|
||
|
Language Program (CRTCLPGM) command. A create command specifies
|
||
|
through a SRCFILE parameter where the source is stored.</p>
|
||
|
<p>The create commands are designed so that you do not have to specify source
|
||
|
file name and member name if you follow this procedure:</p>
|
||
|
<ol><li>Use the default source file name for the type of object you are creating.
|
||
|
To find the default source file name for the command you are using, see IBM-supplied
|
||
|
source files.</li>
|
||
|
<li>Give the source member the same name as the object to be created.</li>
|
||
|
</ol>
|
||
|
<div class="p">For example, to create the control language (CL) program PGMA using the
|
||
|
command defaults, you can type: <pre>CRTCLPGM PGM(PGMA)</pre>
|
||
|
</div>
|
||
|
<p>The system would expect the source for PGMA to be in the PGMA member in
|
||
|
the QCLSRC source file. The library containing the QCLSRC file would be determined
|
||
|
by the library list.</p>
|
||
|
<div class="p">As another example, the following Create Physical File (CRTPF) command
|
||
|
creates the file DSTREF using the database source file FRSOURCE. The source
|
||
|
member is named DSTREF. Because the SRCMBR parameter is not specified, the
|
||
|
system assumes that the member name, DSTREF, is the same as the name of the
|
||
|
object being created. <pre>CRTPF FILE (QGPL/DSTREF) SRCFILE(QGPL/FRSOURCE)</pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="rbafosrccb.htm">Create an object from source statements in a batch job</a></strong><br />
|
||
|
If your create command is contained in a batch job, you can use an inline data file as the source file for the command.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbaforlsao.htm">Determine which source file member was used to create an object</a></strong><br />
|
||
|
When an object is created from source, the information about the source file, library, and member is held in the object. The date and time that the source member was last changed before object creation is also saved in the object.</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafochsrc.htm" title="These topics describe how to enter and maintain data in a source file and how to use that source file to create another object (for example, a file or program) on the system.">Use source files</a></div>
|
||
|
</div>
|
||
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="rbafosrcibm.htm" title="For your convenience, the i5/OS licensed program and other licensed programs provide a database source file for each type of source.">IBM-supplied source files</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|