免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2846 | 回复: 4
打印 上一主题 下一主题

关于定义显示画面的信息问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-06 20:07 |只看该作者 |倒序浏览
在DDS中有这么几行代码,每次做画面和写程序的时候这部分都是抄上去的
一直不理解是什么意思,希望哪位好人能够解释一下,最好每行什么作用都
解释一下,谢谢了,辛苦了!!

      *===============================================================*
      *           MSGSFL    MESSAGE
      *===============================================================*
     A          R MSGSFL                    SFL SFLMSGRCD(23)
     A            DMKEY                     SFLMSGKEY
     A            DMPGMQ                    SFLPGMQ
     A          R MSGCTL                    SFLCTL(MSGSFL)
     A  21                                  SFLINZ
     A                                      SFLSIZ(10)
     A                                      SFLPAG(1)
     A                                      SFLDSP SFLDSPCTL
     A  22                                  SFLEND
     A            DMPGMQ                    SFLPGMQ

论坛徽章:
0
2 [报告]
发表于 2009-02-06 23:44 |只看该作者

回复 #1 zenhu 的帖子

This a DSPF type for SFLMSG

      *           MSGSFL    MESSAGE
      *===============================================================*
     A          R MSGSFL                    SFL SFLMSGRCD(23)
      *  MSGSFL is record name for SFLMSG,23 mean for Line number for first message
     A            DMKEY                     SFLMSGKEY
       * DMKEY mean for Message ID field
     A            DMPGMQ                    SFLPGMQ
       * DMPGMQ mean for Program message queue field
     A          R MSGCTL                    SFLCTL(MSGSFL)
       * MSGCTL name for SFLCTL
     A  21                                  SFLINZ
       * this line mean that if the indicator 21 is on , Initialize subfile fields
     A                                      SFLSIZ(10)
       *  Maximum records in this subfile.
     A                                      SFLPAG(1)
      * how many records display per page.
     A                                      SFLDSP SFLDSPCTL
      * keyword for Displaying subfile records and Display control record
     A  22                                  SFLEND
      * if the indicator 22 is on ,Indicate more records
     A            DMPGMQ                    SFLPGMQ
     * Program message queue field

Above just for ur reference ,if there is any irrelevancys please help to point out .thx.

论坛徽章:
0
3 [报告]
发表于 2009-02-06 23:45 |只看该作者
This a DSPF type for SFLMSG

      *           MSGSFL    MESSAGE
      *===============================================================*
     A          R MSGSFL                    SFL SFLMSGRCD(23)
      *  MSGSFL is record name for SFLMSG,23 mean for Line number for first message

     A            DMKEY                     SFLMSGKEY
       * DMKEY mean for Message ID field

     A            DMPGMQ                    SFLPGMQ
       * DMPGMQ mean for Program message queue field

     A          R MSGCTL                    SFLCTL(MSGSFL)
       * MSGCTL name for SFLCTL

     A  21                                  SFLINZ
       * this line mean that if the indicator 21 is on , Initialize subfile fields

     A                                      SFLSIZ(10)
       *  Maximum records in this subfile.

     A                                      SFLPAG(1)
      * how many records display per page.

     A                                      SFLDSP SFLDSPCTL
      * keyword for Displaying subfile records and Display control record

     A  22                                  SFLEND
      * if the indicator 22 is on ,Indicate more records

     A            DMPGMQ                    SFLPGMQ
     * Program message queue field

Above just for ur reference ,if there is any irrelevancys please help to point out .thx.

论坛徽章:
0
4 [报告]
发表于 2012-03-09 10:50 |只看该作者
我也一直很困惑MSGSFL到底是怎么用的?
我们这有个公用程序,会传入MSGID等信息,然后这个MSGID在Message File里对应的错误描述就会写到MSGSFL里,显示在画面上了。
可是这个RPG的Source不在了,所以不知道到底是怎么把错误信息显示到画面上的?
有谁可以帮忙解惑一下?谢谢啦~~

下面的例子试过了,错误信息在画面上没有看到,但是Jog Log里有显示送了这条错误信息。
http://bbs.chinaunix.net/forum.p ... mp;fromuid=20248194

论坛徽章:
0
5 [报告]
发表于 2012-03-12 15:24 |只看该作者
顶一下!

有没有高手有空指教一下啊,谢谢啦~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP