112 lines
7.3 KiB
HTML
112 lines
7.3 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="Describe database files" />
|
||
|
<meta name="abstract" content="These topics introduce several methods for describing iSeries database files, with focus on how to describe database files using data description specifications (DDS) because DDS has the most options for defining data." />
|
||
|
<meta name="description" content="These topics introduce several methods for describing iSeries database files, with focus on how to describe database files using data description specifications (DDS) because DDS has the most options for defining data." />
|
||
|
<meta name="DC.subject" content="describing, database file, user-defined function (UDF), See DB2 UDB for, iSeries, user-defined type (UDT), See DB2 UDB for, large object (LOB), DataLinks" />
|
||
|
<meta name="keywords" content="describing, database file, user-defined function (UDF), See DB2 UDB for, iSeries, user-defined type (UDT), See DB2 UDB for, large object (LOB), DataLinks" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafocrtdbf.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafodescdds.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafocrtatt.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../books/sc415704.pdf" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafykickoff.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../db2/rbafzmst02.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafofilexr.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="rbafosetcom" />
|
||
|
<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>Describe database files</title>
|
||
|
</head>
|
||
|
<body id="rbafosetcom"><a name="rbafosetcom"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Describe database files</h1>
|
||
|
<div><p>These topics introduce several methods for describing <span class="keyword">iSeries™</span> database files, with focus on
|
||
|
how to describe database files using data description specifications (DDS)
|
||
|
because DDS has the most options for defining data. </p>
|
||
|
<p></p>
|
||
|
<p>If you want to describe a file just to the record level, you can use the
|
||
|
record length (RCDLEN) parameter on the Create Physical File (CRTPF) and Create
|
||
|
Source Physical File (CRTSRCPF) commands. If you want to describe your file
|
||
|
to the field level, several methods can be used to describe data to the database
|
||
|
system: interactive data definition utility (IDDU), Structured Query Language
|
||
|
(SQL) commands, or data description specifications (DDS).</p>
|
||
|
<div class="p"> <dl><dt class="dlterm">Interactive data definition utility (IDDU)</dt>
|
||
|
<dd> <p>Physical files can be described using IDDU.
|
||
|
You might use IDDU because it is a menu-driven, interactive method of describing
|
||
|
data. You might be familiar with describing data using IDDU on a System/36™.
|
||
|
In addition, IDDU allows you to describe multiple-format physical files for
|
||
|
use with Query, iSeries Access,
|
||
|
and data file utility (DFU).</p>
|
||
|
<p>When you use IDDU to describe your files,
|
||
|
the file definition becomes part of the i5/OS™ data dictionary.</p>
|
||
|
</dd>
|
||
|
<dt class="dlterm"><span class="keyword">DB2 Universal Database™ for iSeries</span> Structured
|
||
|
Query Language (SQL)</dt>
|
||
|
<dd> <p>SQL can be used
|
||
|
to describe an <span class="keyword">iSeries</span> database
|
||
|
file. It supports statements to describe the fields in the database file,
|
||
|
and to create the file.</p>
|
||
|
<p>SQL was created by IBM<sup>®</sup> to meet the need for a standard and
|
||
|
common database language. It is currently used on all IBM DB2 platforms and on many other database
|
||
|
implementations from many different manufacturers.</p>
|
||
|
<p>When database files
|
||
|
are created using the <span class="keyword">DB2 UDB for iSeries</span> SQL
|
||
|
language, the description of the file is automatically added to a data dictionary
|
||
|
in the SQL collection. The data dictionary (or catalog) is then automatically
|
||
|
maintained by the system.</p>
|
||
|
<p>SQL is the language of choice for accessing
|
||
|
databases on many other platforms. It is the only language for distributed
|
||
|
database and heterogeneous systems.</p>
|
||
|
</dd>
|
||
|
<dt class="dlterm">Data description specifications (DDS)</dt>
|
||
|
<dd> <p>Externally
|
||
|
described data files can be described using DDS. Using DDS, you provide descriptions
|
||
|
of the field, record, and file level information.</p>
|
||
|
<p>You might use DDS
|
||
|
because it provides the most options for the programmer to describe data in
|
||
|
the database. For example, only with DDS can you describe key fields in logical
|
||
|
files.</p>
|
||
|
<p>The DDS form provides a common format for describing data externally.
|
||
|
DDS data is column sensitive. The examples in this manual have numbered columns
|
||
|
and show the data in the correct columns.</p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<p>After a database file is described, you can view the description.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="rbafodescdds.htm">Describe database files using DDS</a></strong><br />
|
||
|
When you describe a database file using data description specifications (DDS), you can describe information at the file, record-format, join, field, key, and select/omit levels.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbafocrtatt.htm">Specify database file and member attributes</a></strong><br />
|
||
|
When you create a database file, database attributes are stored with the file and members. You specify attributes with database command parameters.</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafocrtdbf.htm" title="This topic provides an overview of the process of creating database files, libraries, source files, and physical files.">Create and describe database files</a></div>
|
||
|
</div>
|
||
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="../books/sc415704.pdf" target="_blank">IDDU Use PDF</a></div>
|
||
|
<div><a href="../sqlp/rbafykickoff.htm">SQL programming</a></div>
|
||
|
<div><a href="../db2/rbafzmst02.htm">DB2 UDB for iSeries SQL Reference</a></div>
|
||
|
<div><a href="rbafofilexr.htm" title="You can display the file attributes for database files and device files using the display table description operation in iSeries Navigator.">Display information about database files</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|