免费注册 查看新帖 |

Chinaunix

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

Definition not found for symbol 'QtmmSendMail' [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-07-07 12:17 |只看该作者 |倒序浏览
QtmmSendMail' の定義が見つからない


Message . . . . :   Definition not found for symbol 'QtmmSendMail'.           
                                                                              
Cause . . . . . :   No definition was found for reference QtmmSendMail in     
  *MODULE object CA#EMAIL in library QTEMP. The definition either does not   
  exist or is not of the same data or procedure type as the reference.        
Recovery  . . . :   Try the Create Program (CRTPGM) command again, supplying  
  an object that contains a definition for symbol QtmmSendMail.               


CRTRPGMOD MODULE(QTEMP/XXXX) SRCFILE(HRMLIB/QRPGLESRC)

CRTPGM PGM(QTEMP/XXXX) BNDSRVPGM(QTCP/QTMMSNDM)

                  

記号 'QtmmSendMail' の定義が見つからない。」というJOBLOGが出ている場合はソースファイルのCCSIDを確認して下さい。                     CCSID=5035,65535等に変換し行って下さい。

论坛徽章:
0
2 [报告]
发表于 2005-07-07 21:16 |只看该作者

Definition not found for symbol 'QtmmSendMail'

1,应该是API原型定义有问题,参考下面的程序;

2,今天是7月7日,心情很沉痛,不想看到鸟语.

*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      *                 Wrk:   Sample Email Program
      *              -----------------------------------
      * Compile instructions:
      *
      * 1. CRTRPGMOD MODULE(xxxlib/TSNDME) SRCFILE(xxxlib/QRPGLESRC) SRCMBR(TSNDME)
      * 2. CRTPGM PGM(xxxlib/TSNDME) MODULE(xxxlib/TSNDME)
      *              BNDSRVPGM(QTCP/QTMMSNDM)
      *
      *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      *
     D* Prototype for QTMMSENDMAIL API
     D qsndme          PR                  ExtProc('QtmmSendMail')
     D  filename                       *   Value
     D  nameLen                      10i 0
     D  OrigAddr                       *   Value
     D  OrigLe                       10i 0
     D  RecipTbl                       *   Value
     D  NbrRecips                    10i 0
     D  pErr                           *   Value
      *
     D* prototype of function to add recipients
     D AddRecip        PR           280
     D  inetAddr                    256    value
     D  AddrType                      2    value
     D
      * copy error structure from QSYSINC
     D/copy qsysinc/qrpglesrc,qusec
     D Qdata                  17    216
     D
      * set pointer to Error structure
     D pErr            S               *   Inz(%addr(QUSEC))
     D
      * email variables
     D RecipTbl        S          32767a
     D Filename        S            255a
     D inetAddr        S            256a
     D nameLen         S             10i 0
     D OrigAddr        S            256a
     D OrigLen         S             10i 0
     D NbrRecips       S             10i 0
      *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      *
      *  M A I N
      *
      *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     C
     C* Initialize Error structure parms
     C                   Eval      Qusbavl = 0
     C                   Eval      Qusbprv = 216
     C
     C* load first recipient into table
     C                   Eval      inetAddr = 'xxx@163.com'
     C                   Eval      RecipTbl = %trim(Reciptbl) +
     C                              %trim(AddRecip(inetAddr:'  '))
     C
     C* load second recipient into table (carbon copy)
     C                   Eval      inetAddr = 'yyy@163.com'
     C                   Eval      RecipTbl = %trim(Reciptbl) +
     C                              %trim(AddRecip(inetAddr:'CC'))
     C
     C* load all other info to field to be sent to API
     C                   Eval      Filename = '/NEW2989.TXT'
     C                   Eval      nameLen = %len(%trim(FileName))

     C                   Eval      OrigAddr = 'tt@orig_domain.com'
     C                   Eval      OrigLen = %len(%trim(OrigAddr))
     C
     C* be sure to set the TOTAL number of recipients
     C                   Eval      NbrRecips = 2
     C
     C* Send the email
     C                   Callp     qsndme(%addr(filename):namelen:
     C                              %addr(Origaddr)riglen:
     C                              %addr(RecipTbl):NbrRecips:pErr)
      * end pgm
     C                   Eval      *inlr = *on
     C                   Return
     C*****************************************************************
     C* AddRecip - function to add recipient to email
     C*****************************************************************
     P AddRecip        b
     D AddRecip        PI           280
     D InetAddr                     256    value
     D AddrType                       2    value
      * Addrtype values
      * *blanks = normal ("To"
      * 'CC' = carbon copy
      * 'BC' = blind carbon copy
     D
      * ADDT0100 data structure  - (See IBM Qtmmsendmail docs for
      *  details)
     D tblWork         DS
     D  NextOffset                    9b 0
     D  AddrLen                       9b 0
     D  AddrFmt                       8
     D  DistType                      9b 0
     D  Resrvd01                      9b 0
     D  DestAddr                    256
     D
     C
     C* load recipient into structure
     C                   Eval      Addrfmt = 'ADDT0100'
     C                   Eval      Resrvd01 = 0
     C
     C                   Select
     C* CC = carbon copy
     C                   When      AddrType = 'CC'
     C                   Eval      DistType = 1
     C* BC = blind carbon copy
     C                   When      AddrType = 'BC'
     C                   Eval      DistType = 2
     C* all other values will be normal
     C                   Other
     C                   Eval      DistType = 0
     C
     C                   Endsl
     C
     C                   Eval      DestAddr = inetAddr
     C                   Eval      Addrlen = %len(%trim(DestAddr))

     C                   Eval      NextOffset = 24 + Addrlen
     C
     C
     C
     C                   Return    tblwork
     P AddRecip        e
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP