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

  • 相关阅读:
    [智能架构系列]PHP获取用户IP所在地的信息
    BT的QQ,从QQ2011看腾讯的变化
    值得怀念的日子
    懂运营的RD是最好的PM
    A && B
    更新redis到2.2.1版本
    [智能架构系列]什么是Buddy智能开发框架
    PHP你知道的
    No copy,No paste
    结网读书笔记从产品经理的角度看产品
  • 原文地址:https://www.cnblogs.com/wildfish/p/1031836.html
Copyright © 2011-2022 走看看