This examples shows how to retrieve member description information.
In the following CL procedure, a Retrieve User Profile Attributes (RTVUSRPRF) 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).
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)
The following information is returned to the procedure: