72 lines
4.7 KiB
HTML
72 lines
4.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="Examples: CL programs and procedures" />
|
|
<meta name="abstract" content="These sample programs demonstrate the flexibility, simplicity, and versatility of CL programs." />
|
|
<meta name="description" content="These sample programs demonstrate the flexibility, simplicity, and versatility of CL programs." />
|
|
<meta name="DC.Relation" scheme="URI" content="clpro.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="iprog.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="savea.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rterm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="timeo.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="datearith.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzahw/rzahwovepo.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="sampl" />
|
|
<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>Examples: CL programs and procedures</title>
|
|
</head>
|
|
<body id="sampl"><a name="sampl"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Examples: CL programs and procedures</h1>
|
|
<div><p>These sample programs demonstrate the flexibility, simplicity,
|
|
and versatility of CL programs. </p>
|
|
<div class="section"><p>The following programs are described by their function and probable
|
|
user.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> Code generated by the ILE CL compiler in V4R3 and later releases
|
|
is threadsafe. However, many commands are not threadsafe. Therefore, do not
|
|
consider a CL procedure as threadsafe unless all the commands the CL procedure
|
|
uses are threadsafe. You can use the <span class="cmdname">Display Command (DSPCMD)</span> command
|
|
to determine if a command is threadsafe. In addition, information (online
|
|
help and command documentation) for each command indicates whether the command
|
|
is threadsafe.</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="iprog.htm">Example: Initial program for setup (programmer)</a></strong><br />
|
|
In this example, the test library is placed first on the library list, an output queue is selected for a convenient printer, and the programmer menu is displayed.</li>
|
|
<li class="ulchildlink"><strong><a href="savea.htm">Example: Save specific objects in an application (system operator)</a></strong><br />
|
|
This example program ensures consistent command entry for regularly repeated procedures.</li>
|
|
<li class="ulchildlink"><strong><a href="rterm.htm">Example: Recovery from abnormal end (system operator)</a></strong><br />
|
|
In this example, the system operator recovers from an abnormal end.</li>
|
|
<li class="ulchildlink"><strong><a href="timeo.htm">Example: Time out while waiting for input from a device display</a></strong><br />
|
|
This program illustrates how to write a CL program using a display file that will wait for a specified amount of time for the user to enter an option. If he does not, the user is signed off.</li>
|
|
<li class="ulchildlink"><strong><a href="datearith.htm">Example: Perform date arithmetic</a></strong><br />
|
|
This program illustrates how to write a CL program that adds or subtracts a given number of days for the current system date.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="clpro.htm" title="This provides tasks and concepts specific to CL programming.">CL programming</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../rzahw/rzahwovepo.htm">Multithreaded Applications</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |