78 lines
5.5 KiB
HTML
78 lines
5.5 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="reference" />
|
|
<meta name="DC.Title" content="Temporary source file members created by the SQL precompiler" />
|
|
<meta name="abstract" content="Source statements processed by the precompiler are written to an output source file." />
|
|
<meta name="description" content="Source statements processed by the precompiler are written to an output source file." />
|
|
<meta name="DC.subject" content="precompiler, output from, temporary source file member, output from precompiler, source file, member, temporary, precompiler file, QSQLTEMP, QSQLTEMP1, precompiler parameter, PGM, OBJ, CCSID, temporary source file, source file, temporary for precompile, Create Source Physical File (CRTSRCPF) command, precompile use, command (CL), Create Source Physical File (CRTSRCPF) command" />
|
|
<meta name="keywords" content="precompiler, output from, temporary source file member, output from precompiler, source file, member, temporary, precompiler file, QSQLTEMP, QSQLTEMP1, precompiler parameter, PGM, OBJ, CCSID, temporary source file, source file, temporary for precompile, Create Source Physical File (CRTSRCPF) command, precompile use, command (CL), Create Source Physical File (CRTSRCPF) command" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajpoutputcompile.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="rzajptempmem" />
|
|
<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>Temporary source file members created by the SQL precompiler</title>
|
|
</head>
|
|
<body id="rzajptempmem"><a name="rzajptempmem"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Temporary source file members created by the SQL precompiler</h1>
|
|
<div><p>Source statements processed by the precompiler are written to an
|
|
output source file.</p>
|
|
<div class="section"><p>In the precompiler-changed source code, SQL statements have been
|
|
converted to comments and calls to the SQL runtime. Includes that are processed
|
|
by SQL are expanded.</p>
|
|
</div>
|
|
<div class="section"><p> The output source file is specified on the CRTSQLxxx command
|
|
in the TOSRCFILE parameter. For languages other than C and C++, the default
|
|
file is QSQLTEMP (QSQLTEMP1 for ILE RPG) in the QTEMP library.
|
|
For C and C++ when *CALC is specified as the output source file, QSQLTEMP
|
|
will be used if the source file's record length is 92 or less. For a C or
|
|
C++ source file where the record length is greater than 92, the output source
|
|
file name will be generated as QSQLTxxxxx, where xxxxx is the record length.
|
|
The name of the output source file member is the same as the name specified
|
|
in the PGM or OBJ parameter of the CRTSQLxxx command. This member cannot be
|
|
changed before being used as input to the compiler. When SQL creates the output
|
|
source file, it uses the CCSID value of the source file as the CCSID value
|
|
for the new file.</p>
|
|
</div>
|
|
<div class="section"><p>If the precompile generates output in a source file in QTEMP,
|
|
the file can be moved to a permanent library after the precompile if you want
|
|
to compile at a later time. You cannot change the records of the source member,
|
|
or the attempted compile fails.</p>
|
|
</div>
|
|
<div class="section"><p>The source member that is generated by SQL as the result of the
|
|
precompile should never be edited and reused as an input member to another
|
|
precompile step. The additional SQL information that is saved with the source
|
|
member during the first precompile will cause the second precompile to work
|
|
incorrectly. Once this information is attached to a source member, it stays
|
|
with the member until the member is deleted.</p>
|
|
</div>
|
|
<div class="section"><p>The SQL precompiler uses the <span class="cmdname">CRTSRCPF</span> command
|
|
to create the output source file. If the defaults for this command have changed,
|
|
then the results may be unpredictable. If the source file is created by the
|
|
user, not the SQL precompiler, the file's attributes may be different as well.
|
|
It is recommended that the user allow SQL to create the output source file.
|
|
Once it has been created by SQL, it can be reused on later precompiles.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzajpoutputcompile.htm" title="The following sections describe the various kinds of output supplied by the precompiler.">Output from the SQL precompiler</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |