54 lines
3.2 KiB
HTML
54 lines
3.2 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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" 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. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
|
|
<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))' />
|
|
<title>Example: DDS for iSeries database file CUSTCDT</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="ifsql14"></a>
|
|
<h5 id="ifsql14">Example: DDS for iSeries database file CUSTCDT</h5>
|
|
<a name="wq104"></a>
|
|
<div class="notetitle" id="wq104">Note:</div>
|
|
<div class="notebody">Read the <a href="rzaef02.htm#netwcodedisclaimer">Code disclaimer information</a> for important legal
|
|
information.</div>
|
|
<p>The file in this example is in library DATALIB and has the name CUSTCDT.
|
|
The DDS description of the file CUSTCDT shows that the fields CUSNUM, ZIPCOD,
|
|
CDTLMT, CHGCOD, BALDUE, and CDTDUE are of type packed decimal. All other fields
|
|
are of type character. </p>
|
|
<pre class="screen">A R CUSREC
|
|
A CUSNUM 6P 0 COLHDG('Customer number')
|
|
A LSTNAM 8A COLHDG('Last name')
|
|
A INIT 3A COLHDG('First/middle initial')
|
|
A STREET 13A COLHDG('Street address')
|
|
A CITY 6A COLHDG('City')
|
|
A STATE 2A COLHDG('State abbreviation')
|
|
A ZIPCOD 5P 0 COLHDG('Zip code')
|
|
A CDTLMT 4P 0 COLHDG('Credit limit')
|
|
A CHGCOD 1P 0 COLHDG('Charge code')
|
|
A BALDUE 6P 2 COLHDG('Balance due')
|
|
A CDTDUE 6P 2 COLHDG('Credit due')</pre>
|
|
<p>If you are not familiar with DDS definitions, you can refer to <a href="rzaefifsql16.htm#ifsql16">Example: DSPFFD of iSeries database file CUSTCDT</a> for
|
|
the output of the <tt class="xph">DSPFFD CUSTCDT</tt> command. <a href="rzaefifsql15.htm#ifsql15">Example: Content of CUSTCDT database file display that Query for iSeries creates</a> shows
|
|
the content of the CUSTCDT file which was created using an iSeries™ query.</p>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|