zoukankan      html  css  js  c++  java
  • 取成员描述信息

    In the following CL procedure, a RTVMBRD 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(*CURLIB/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:
    v The current library name (MYLIB) is placed into the CL variable name &LIB
    v 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.)
    v 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
    v 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.)
    v

  • 相关阅读:
    Tkinter的Radiobutton组件
    Tkinter的Canvas组件
    python小程序-日历查询器
    python语言Tkinter的Button组件
    python异常处理机制(try:except)
    python中OS模块的使用
    正则表达式-常用函数的基本使用
    正则表达式-常用元字符的基本使用
    html框架iframe与frameset的介绍
    常见form表单5种input输入类型
  • 原文地址:https://www.cnblogs.com/wildfish/p/1031849.html
Copyright © 2011-2022 走看看