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

  • 相关阅读:
    Brackets_区间DP
    石子合并_区间Dp
    You Are the One_区间DP
    Palindrome subsequence_区间DP
    Infix to postfix 用stack模板,表达式没有括号
    Java 4
    Java 3
    规范化的递归转换成非递归
    recursion 递归以及递归的缺点
    Infix to postfix conversion 中缀表达式转换为后缀表达式
  • 原文地址:https://www.cnblogs.com/wildfish/p/1031836.html
Copyright © 2011-2022 走看看