95 lines
5.8 KiB
HTML
95 lines
5.8 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="CSRLOC (Cursor Location) keyword for display files" />
|
||
|
<meta name="abstract" content="Use this record-level keyword to specify the cursor location on an output operation to the record format you are defining. Your program sends the output operation after setting the cursor location." />
|
||
|
<meta name="description" content="Use this record-level keyword to specify the cursor location on an output operation to the record format you are defining. Your program sends the output operation after setting the cursor location." />
|
||
|
<meta name="DC.subject" content="CSRLOC (Cursor Location) keyword, Cursor Location (CSRLOC) keyword" />
|
||
|
<meta name="keywords" content="CSRLOC (Cursor Location) keyword, Cursor Location (CSRLOC) keyword" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzakcmstkeyent.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rzakcmstdfcsrlc" />
|
||
|
<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>CSRLOC (Cursor Location) keyword for display files</title>
|
||
|
</head>
|
||
|
<body id="rzakcmstdfcsrlc"><a name="rzakcmstdfcsrlc"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">CSRLOC (Cursor Location) keyword for display files</h1>
|
||
|
<div><p>Use this record-level keyword to specify the cursor location on
|
||
|
an output operation to the record format you are defining. Your program sends
|
||
|
the output operation after setting the cursor location.</p>
|
||
|
<div class="section"><p>The format of the keyword is:</p>
|
||
|
<pre>CSRLOC(field-name-1 field-name-2)</pre>
|
||
|
<p>The
|
||
|
parameter values on the keyword specify the names of two fields whose contents
|
||
|
are the line number (for field-name-1) and the position number (for field-name-2)
|
||
|
of the cursor location. Field-name-1 and field-name-2 are 3-byte, zoned decimal,
|
||
|
hidden fields. Your program uses these fields to tell the <span class="keyword">i5/OS™</span> operating
|
||
|
system where to locate the cursor.</p>
|
||
|
<p>The cursor is not
|
||
|
positioned to the required location on an output operation that leaves the
|
||
|
keyboard locked. The cursor does not move to the required position until your
|
||
|
program sends an input or an output operation that unlocks the keyboard. If
|
||
|
your program sets the cursor location fields to values outside the range of
|
||
|
values valid for the display device, this keyword is ignored.</p>
|
||
|
<p>For any
|
||
|
one output operation, the CSRLOC keyword overrides any other cursor location
|
||
|
specifications, such as DSPATR(PC) and SFLRCDNBR(CURSOR), that are in effect.
|
||
|
This keyword is in effect until your program sends another output operation
|
||
|
with DSPATR(PC), CSRLOC, or SFLRCDNBR(CURSOR) in effect or until the record
|
||
|
in which this keyword is specified is overlaid (OVERLAY keyword) or erased
|
||
|
(ERASE keyword), whichever comes first.</p>
|
||
|
<p>On an input operation, the
|
||
|
cursor location can be determined by looking at the I/O feedback area or specifying
|
||
|
the appropriate parameter on the RTNCSRLOC keyword. See the <a href="../books/sc415715.pdf" target="_blank">Application Display Programming
|
||
|
book</a><img src="wbpdf.gif" alt="Link to PDF" /> for
|
||
|
more information about the I/O feedback area.</p>
|
||
|
<p>Specify the CSRLOC keyword
|
||
|
only once per record format.</p>
|
||
|
<p>The CSRLOC keyword is not valid for the
|
||
|
following record formats:</p>
|
||
|
<ul><li>Subfile record formats (identified by the SFL keyword)</li>
|
||
|
<li>User-defined record formats (identified by the USRDFN keyword)</li>
|
||
|
</ul>
|
||
|
<p>Option indicators are valid for this keyword. Display size condition
|
||
|
names are not valid.</p>
|
||
|
</div>
|
||
|
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
|
||
|
the CSRLOC keyword.</p>
|
||
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
||
|
00010A R RECORD1 CSRLOC(LINNBR POSNBR)
|
||
|
00020A TITLE 40 B 1 2
|
||
|
00030A PAGE 5Y OB 1 60
|
||
|
00040A TEXT 1760 B 2 1
|
||
|
00050A LINNBR 3 OH
|
||
|
00060A POSNBR 3 OH
|
||
|
A</pre>
|
||
|
<p>The application program sets the contents of LINNBR and
|
||
|
POSNBR before issuing an output operation to RECORD1. When the record is displayed,
|
||
|
the fields <em>Title</em>, <em>Page</em>, and <em>Text</em> appear on the display.
|
||
|
The cursor can be at some location in a field of RECORD1 where the workstation
|
||
|
user is to make changes.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcmstkeyent.htm" title="You type the keyword entries that define display files in positions 45 through 80 (functions).">DDS keyword entries for display files (positions 45 through 80)</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|