zoukankan      html  css  js  c++  java
  • DCLF RCVF SNDF SNDRCVF等用法


      DCLF FILE(library-name/file-name)
        RCDFMT(record-format-names)
    2.用显示文件接收和发送数据
      SNDF,与记录格式中输出和输入/输出字段相关的变量的内容有系统格式化后发送到显示设备
    RCVF 记录格式中输入和输入/输出字段的值放在相应的CL变量中
    SNDRCVF把CL变量中的内容送往显示,然后从显示中得到更新后的字段
    this:
    Operator Menu
    1. Accounts Payable
    2. Accounts Receivable
    90. Signoff
    Option:
    First, enter the following DDS source. The record format is MENU, and OPTION is
    an input-capable field. The OPTION field uses DSPATR(MDT). This causes the
    system to check this field for valid values even if the operator does not enter
    anything.
    Enter the CRTDSPF command to create the display file. In CL programming, the
    display file name (INTMENU) can be the same as the record format name (MENU),
    though this is not true for some other languages, like RPG for OS/400.
    The display file could also be created using the Screen Design Aid (SDA) utility.
    Next, enter the CL source to run the menu.
    The CL source for this menu is:
    PGM /* OPERATOR MENU */
    DCLF INTMENU
    BEGIN: SNDRCVF RCDFMT(MENU)
    IF COND(&OPTION *EQ 1) THEN(CALL ACTSPAYMNU)
    IF COND(&OPTION *EQ 2) THEN(CALL ACTSRCVMNU)
    IF COND(&OPTION *EQ 90) THEN(SIGNOFF)
    GOTO BEGIN
    ENDPGM

  • 相关阅读:
    解决Android Studio Gradle DSL method not found: 'android()'
    【转】关于ListView中notifyDataSetChanged()刷新数据不更新原因
    设计模式-单例模式
    IE浏览器让DIV居中
    Java通过DOM解析XML
    git 配置文件位置;git配置文件设置
    git config配置
    dos2unix
    文件的编码问题解决
    git diff old mode 100644 new mode 100755
  • 原文地址:https://www.cnblogs.com/wildfish/p/1031836.html
Copyright © 2011-2022 走看看