69 lines
4.9 KiB
HTML
69 lines
4.9 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="Considerations for writing a high-level language program" />
|
||
|
<meta name="abstract" content="There are certain considerations for writing a high-level language program." />
|
||
|
<meta name="description" content="There are certain considerations for writing a high-level language program." />
|
||
|
<meta name="DC.subject" content="writing, high-level language program, high-level language (HLL) program, writing considerations, HLL (high-level language) program" />
|
||
|
<meta name="keywords" content="writing, high-level language program, high-level language (HLL) program, writing considerations, HLL (high-level language) program" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafoopnqf.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafoufinf.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="rbafochllp" />
|
||
|
<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>Considerations for writing a high-level language program</title>
|
||
|
</head>
|
||
|
<body id="rbafochllp"><a name="rbafochllp"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Considerations for writing a high-level language program</h1>
|
||
|
<div><p>There are certain considerations for writing a high-level
|
||
|
language program.</p>
|
||
|
<p>If you omit the FORMAT parameter, your high-level language program is coded
|
||
|
as if you were directly accessing the database file. Selection or sequencing
|
||
|
occurs external to your program, and the program receives the selected records
|
||
|
in the order you specified. The program does not receive records that are
|
||
|
omitted by your selection values. This same function occurs if you process
|
||
|
through a logical file with select/omit values.</p>
|
||
|
<p>If you use the FORMAT parameter, your program specifies the same file name
|
||
|
used on the FORMAT parameter. The program is written as if this file contained
|
||
|
actual data.</p>
|
||
|
<p>If you read the file sequentially, your high-level language can automatically
|
||
|
specify that the key fields are ignored. Normally you write the program as
|
||
|
if it were reading records in arrival sequence. If the KEYFLD parameter is
|
||
|
used on the Open Query File (OPNQRYF) command, you receive a diagnostic message,
|
||
|
which can be ignored.</p>
|
||
|
<p>If you process the file randomly by keys, your high-level language probably
|
||
|
requires a key specification. If you have selection values, it can prevent
|
||
|
your program from accessing a record that exists in the database. A <samp class="codeph">Record
|
||
|
not found</samp> condition can occur on a random read whether the OPNQRYF
|
||
|
command was used or whether a logical file created using DDS select/omit logic
|
||
|
was used.</p>
|
||
|
<p>In some cases, you can monitor exceptions caused by mapping errors such
|
||
|
as arithmetic overflow, but it is better to define the attributes of all fields
|
||
|
to correctly handle the results.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafoopnqf.htm" title="The Open Query File (OPNQRYF) command is a control language (CL) command that allows you to perform many data processing functions on database files. These topics discuss how to create a query using the OPNQRYF command, how to specify parameters for its major functions, and how to use it with your high-level language program.">Use Open Query File (OPNQRYF) command</a></div>
|
||
|
</div>
|
||
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
||
|
<div><a href="rbafoufinf.htm" title="The Open Query File (OPNQRYF) command does the record selection and your program processes only the records that meet the selection values. You can use this approach to select a set of records, return records in a different sequence than they are stored, or both.">Use an existing record format in the file</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|