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

转载于:https://www.cnblogs.com/wildfish/archive/2008/01/09/1031836.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值