ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/rtmbr.htm

87 lines
4.8 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="Example: Use RTVMBRD" />
<meta name="abstract" content="This examples shows how to retrieve member description information." />
<meta name="description" content="This examples shows how to retrieve member description information." />
<meta name="DC.Relation" scheme="URI" content="retmd.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="rtmbr" />
<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>Example: Use RTVMBRD</title>
</head>
<body id="rtmbr"><a name="rtmbr"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Use RTVMBRD</h1>
<div><p>This examples shows how to retrieve member description information.</p>
<div class="section"><p>In the following CL procedure, a <span class="cmdname">Retrieve User Profile
Attributes (RTVUSRPRF)</span> command retrieves the description of a specific
member. Assume a database file called MFILE exists in the current library
(MYLIB) and contains 3 members (AMEMBER, BMEMBER, and CMEMBER). </p>
<pre>DCL &amp;LIB TYPE(*CHAR) LEN(10)
DCL &amp;MBR TYPE(*CHAR) LEN(10)
DCL &amp;SYS TYPE(*CHAR) LEN(4)
DCL &amp;MTYPE TYPE(*CHAR) LEN(5)
DCL &amp;CRTDATE TYPE(*CHAR) LEN(13)
DCL &amp;CHGDATE TYPE(*CHAR) LEN(13)
DCL &amp;TEXT TYPE(*CHAR) LEN(50)
DCL &amp;NBRRCD TYPE(*DEC) LEN(10 0)
DCL &amp;SIZE TYPE(*DEC) LEN(10 0)
DCL &amp;USEDATE TYPE(*CHAR) LEN(13)
DCL &amp;USECNT TYPE(*DEC) LEN(5 0)
DCL &amp;RESET TYPE(*CHAR) LEN(13)
.
.
.
RTVMBRD FILE(*CWeb siteIB/MYFILE) MBR(AMEMBER *NEXT) +
RTNLIB(&amp;LIB) RTNSYSTEM(&amp;SYS) RTNMBR(&amp;MBR) +
FILEATR(&amp;MTYPE) CRTDATE(&amp;CRTDATE) TEXT(&amp;TEXT) +
NBRCURRCD(&amp;NBRRCD) DTASPCSIZ(&amp;SIZE) USEDATE(&amp;USEDATE) +
USECOUNT(&amp;USECNT) RESETDATE(&amp;RESET)</pre>
</div>
<div class="section"><p>The following information is returned to the procedure: </p>
<ul><li>The current library name (MYLIB) is placed into the CL variable name &amp;LIB</li>
<li>The system that MYFILE was found on is placed into the CL variable name &amp;SYS
(*LCL means the file was found on the local system, and *RMT means the file
was found on a remote system.)</li>
<li>The member name (BMEMBER), since BMEMBER is the member immediately after
AMEMBER in a name ordered member list (*NEXT), is placed into the CL variable
named &amp;MBR</li>
<li>The file attribute of MYFILE is placed into the CL variable named &amp;MTYPE
(*DATA means the member is a data member, and *SRC means the file is a source
member.)</li>
<li>The creation date of BMEMBER is placed into the CL variable called &amp;CRTDATE</li>
<li>The text used to describe BMEMBER is placed into the CL variable called &amp;TEXT</li>
<li>The current number of records in BMEMBER is placed into the CL variable
called &amp;NBRRCD</li>
<li>The size of BMEMBER's data space (in bytes) is placed into the CL variable
called &amp;SIZE</li>
<li>The date that BMEMBER was last used is placed into the CL variable called &amp;USEDATE</li>
<li>The number of days that BMEMBER has been used is placed into the CL variable
called &amp;USECNT The start date of this count is the value placed into
the CL variable called &amp;RESET</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="retmd.htm" title="Using the Retrieve Member Description (RTVMBRD) command, you can retrieve information about a member of a database file for use in your applications.">Retrieve member description information</a></div>
</div>
</div>
</body>
</html>