英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论