编译器指令未被识别。

huangapple go评论80阅读模式
英文:

Compiler directive not recognized

问题

我在编写这个RPGLE程序的C表时遇到了这个错误:

编译器指令未被识别;指令被忽略

这是我的代码,在最后六行我遇到了错误。

HDatedit(*ymd) datfmt(*iso)                             
FQPRINT    O    F  132        PRINTER OFLIND(*INOV)    
DWCLICLA          S              5  0                  
DWCLINOM          S             45                     
DWCLICEL          S             15                     
DWCLISEX          S              1                     
DWCLIEMAIL        S             30                     
DWCLIESTD         S              1                     
DWCLIDEP          S              2  0                  
C*                                                     
C                   EXCEPT    CABECERA                 
C                   EXCEPT    linea                    
C*                                                     
C/EXEC SQL                                             
C+  DECLARE C1 CURSOR FOR                              
C+    SELECT CLICLAV, CLINOM, CLICEL, CLISEX, CLIEMAIL 
C+     FROM CLIENTES      
C+      ORDER BY CLICLAV  
C/end-exec                

我正在使用PUB400.com(V7r5)学习RPGLE。

英文:

I get this error when start coding the C sheet of this RPGLE program :

Compiler directive not recognized; directive ignored

This is my code, in the last six lines I get the error.

HDatedit(*ymd) datfmt(*iso)                            
FQPRINT    O    F  132        PRINTER OFLIND(*INOV)    
DWCLICLA          S              5  0                  
DWCLINOM          S             45                     
DWCLICEL          S             15                     
DWCLISEX          S              1                     
DWCLIEMAIL        S             30                     
DWCLIESTD         S              1                     
DWCLIDEP          S              2  0                  
C*                                                     
C                   EXCEPT    CABECERA                 
C                   EXCEPT    linea                    
C*                                                     
C/EXEC SQL                                             
C+  DECLARE C1 CURSOR FOR                              
C+    SELECT CLICLAV, CLINOM, CLICEL, CLISEX, CLIEMAIL 
C+     FROM CLIENTES      
C+      ORDER BY CLICLAV  
C/end-exec                

I'm using PUB400.com (V7r5) to learn RPGLE.

答案1

得分: 5

请使用CRTSQLRPGI编译带有EXEC SQL的源代码。源成员类型应为SQLRPGLE,而不是RPGLE。

英文:

You need to use CRTSQLRPGI to compile source with EXEC SQL. The source member type should be SQLRPGLE, not RPGLE.

huangapple
  • 本文由 发表于 2023年6月8日 10:30:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76428217.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定