87 lines
4.8 KiB
HTML
87 lines
4.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="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 &LIB TYPE(*CHAR) LEN(10)
|
|
DCL &MBR TYPE(*CHAR) LEN(10)
|
|
DCL &SYS TYPE(*CHAR) LEN(4)
|
|
DCL &MTYPE TYPE(*CHAR) LEN(5)
|
|
DCL &CRTDATE TYPE(*CHAR) LEN(13)
|
|
DCL &CHGDATE TYPE(*CHAR) LEN(13)
|
|
DCL &TEXT TYPE(*CHAR) LEN(50)
|
|
DCL &NBRRCD TYPE(*DEC) LEN(10 0)
|
|
DCL &SIZE TYPE(*DEC) LEN(10 0)
|
|
DCL &USEDATE TYPE(*CHAR) LEN(13)
|
|
DCL &USECNT TYPE(*DEC) LEN(5 0)
|
|
DCL &RESET TYPE(*CHAR) LEN(13)
|
|
.
|
|
.
|
|
.
|
|
RTVMBRD FILE(*CWeb siteIB/MYFILE) MBR(AMEMBER *NEXT) +
|
|
RTNLIB(&LIB) RTNSYSTEM(&SYS) RTNMBR(&MBR) +
|
|
FILEATR(&MTYPE) CRTDATE(&CRTDATE) TEXT(&TEXT) +
|
|
NBRCURRCD(&NBRRCD) DTASPCSIZ(&SIZE) USEDATE(&USEDATE) +
|
|
USECOUNT(&USECNT) RESETDATE(&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 &LIB</li>
|
|
<li>The system that MYFILE was found on is placed into the CL variable name &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 &MBR</li>
|
|
<li>The file attribute of MYFILE is placed into the CL variable named &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 &CRTDATE</li>
|
|
<li>The text used to describe BMEMBER is placed into the CL variable called &TEXT</li>
|
|
<li>The current number of records in BMEMBER is placed into the CL variable
|
|
called &NBRRCD</li>
|
|
<li>The size of BMEMBER's data space (in bytes) is placed into the CL variable
|
|
called &SIZE</li>
|
|
<li>The date that BMEMBER was last used is placed into the CL variable called &USEDATE</li>
|
|
<li>The number of days that BMEMBER has been used is placed into the CL variable
|
|
called &USECNT The start date of this count is the value placed into
|
|
the CL variable called &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> |