85 lines
6.7 KiB
HTML
85 lines
6.7 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="BASIC considerations for DDM" />
|
||
|
<meta name="abstract" content="Compiled BASIC programs and interpretive BASIC statements can refer to DDM files. In addition, DDM file names can be specified on the Create BASIC Program (CRTBASPGM), Start BASIC (STRBAS), and Execute BASIC Procedure (EXCBASPRC) commands." />
|
||
|
<meta name="description" content="Compiled BASIC programs and interpretive BASIC statements can refer to DDM files. In addition, DDM file names can be specified on the Create BASIC Program (CRTBASPGM), Start BASIC (STRBAS), and Execute BASIC Procedure (EXCBASPRC) commands." />
|
||
|
<meta name="DC.subject" content="BASIC, commands, limitations, language considerations, high-level language (HLL), HLL (high-level language), source file requirements, restrictions, SRCFILE parameter, SRCMBR parameter, command, CRTBASPGM (Create BASIC Program), Create BASIC Program (CRTBASPGM), command, CL, BASIC program, creating, BASIC program, STRBAS (Start BASIC), Start BASIC (STRBAS), command, CL, Start BASIC (STRBAS), starting, Execute BASIC Procedure (EXCBASPRC), DDM file, BASIC considerations, accessing, LISTFMT, LISTFMTP, I/O operation, operation, input/output" />
|
||
|
<meta name="keywords" content="BASIC, commands, limitations, language considerations, high-level language (HLL), HLL (high-level language), source file requirements, restrictions, SRCFILE parameter, SRCMBR parameter, command, CRTBASPGM (Create BASIC Program), Create BASIC Program (CRTBASPGM), command, CL, BASIC program, creating, BASIC program, STRBAS (Start BASIC), Start BASIC (STRBAS), command, CL, Start BASIC (STRBAS), starting, Execute BASIC Procedure (EXCBASPRC), DDM file, BASIC considerations, accessing, LISTFMT, LISTFMTP, I/O operation, operation, input/output" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbae5plc.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbae5basiccon" />
|
||
|
<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>BASIC considerations for DDM</title>
|
||
|
</head>
|
||
|
<body id="rbae5basiccon"><a name="rbae5basiccon"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">BASIC considerations for DDM</h1>
|
||
|
<div><p>Compiled BASIC programs and interpretive BASIC statements can refer
|
||
|
to DDM files. In addition, DDM file names can be specified on the <span class="cmdname">Create
|
||
|
BASIC Program (CRTBASPGM)</span>, <span class="cmdname">Start BASIC (STRBAS)</span>,
|
||
|
and <span class="cmdname">Execute BASIC Procedure (EXCBASPRC)</span> commands.</p>
|
||
|
<div class="section"><ul><li>A DDM file name can be specified on the SRCFILE parameter, and a member
|
||
|
name can be specified on the SRCMBR parameter of the <span class="cmdname">CRTBASPGM</span>, <span class="cmdname">STRBAS</span>,
|
||
|
and <span class="cmdname">EXCBASPRC</span> commands, but only if the remote source file
|
||
|
(and member) is on an <span class="keyword">iSeries™ server</span> or
|
||
|
a <span class="keyword">System/38™</span>. If one of these
|
||
|
commands refers to remote files on non-<span class="keyword">iSeries</span> or
|
||
|
non-<span class="keyword">System/38</span> target servers,
|
||
|
the operation fails.</li>
|
||
|
<li>A DDM file can be used as the source file for the following BASIC commands
|
||
|
in the BASIC session: FREE, LOAD, MERGE, PROC, REPLACE, SAVE, SRCFILE, and
|
||
|
SUBPROC. It can also be used in the CHAIN BASIC statement.</li>
|
||
|
<li>A DDM file name can be specified in the DECLARE FILE statement. The remote
|
||
|
file that the DDM file refers to is used to bring in the field definitions
|
||
|
for an externally described file. If this is done and the remote file is not
|
||
|
on an <span class="keyword">iSeries server</span> or a <span class="keyword">System/38</span>, the field declares for the
|
||
|
record descriptions will not have meaningful names. Instead, all of the field
|
||
|
names are declared as F<em>nnnnn</em> and the key fields are declared as K<em>nnnnn</em>.
|
||
|
<p>A recommended method for describing remote files, when the target is not
|
||
|
an <span class="keyword">iSeries server</span> or a <span class="keyword">System/38</span>,
|
||
|
is to have the data description specifications (DDS) on the local server and
|
||
|
enter a <span class="cmdname">Create Physical File (CRTPF)</span> command or a <span class="cmdname">Create
|
||
|
Logical File (CRTLF)</span> command on the local server. Compile the program
|
||
|
using the local file name. Ensure that the remote server's file has the corresponding
|
||
|
field types and field lengths.</p>
|
||
|
<div class="p">To access the remote file, use the <span class="cmdname">Override
|
||
|
with Database File (OVRDBF)</span> command preceding the program, for example: <pre>OVRDBF FILE(PGMFIL) TOFILE(DDMFIL) LVLCHK(*NO)</pre>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li>A DDM file can be specified as the file used in the LISTFMT and LISTFMTP
|
||
|
BASIC commands. These commands extract the file descriptions of the referred
|
||
|
to remote file to list any fields used in the program.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><p>When BASIC is used to open a DDM file on the source server,
|
||
|
the following statements can be used to perform I/O operations on the remote
|
||
|
file at the target server, for both <span class="keyword">iSeries</span> and
|
||
|
non-<span class="keyword">iSeries</span> targets: CLOSE,
|
||
|
DELETE, INPUT, LINPUT, OPEN, READ, REREAD, RESTORE, REWRITE, and WRITE statements
|
||
|
for processing record files, and GET and PUT statements for processing remote
|
||
|
stream files.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5plc.htm" title="DDM is supported by these iSeries languages.">Programming language considerations for DDM</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|