摘要:
我想要在rpgsql中用sql来判断一个记录是否存在
exec sql
if exists(select * from xxxx where id = vid) then
insert into。。。。。。。。。。。。。
endif
end-exec
但是提示if不是期望的,在sql下是可以这么写的,在rpgsql里除了用chain应该怎么写(用sql)?
另一个问题就是在rpgsql中声明游标
exec sql
declare c1 cursor......
摘要:
如果spool file里没有中文,那copy到pf是没问题。
但是如果spool file里含有中文,那么copy到pf后中文为乱码,我把用户简表里的ccsid改为935,语言选中文也不行。
用来保存spool file数据的pf在创建的时候应该注意什么吗??
我在创建pf的时候,dbcs=*yes,但是如果指定了ccsid和语言,那就不能创建成*data类型的pf,我又没有dds参考,该怎么办???
子樵 回复于......
如何取某一日期是一个星期中的哪一天
how to force an rpg dump
【相关文章:
如何让你的Win2000文件更安全? 】 【扩展阅读:
用好Windows 2000的关机与休眠】occasionally, we all manage to write an rpg program with a bug or two.
【扩展信息:
在Windows 2000下限制别人使用】 hopefully, we find the bugs before the programs make it into the
production environment. if we dont, no matter how unlikely the
sequence of events that exposes the bug, its a certainty that a user
will discover it!
in such a case, an rpg formatted dump might help you determine the
problem. all too often, users respond to error messages without
requesting a dump. fortunately, you can use rpgs dump opcode to force
a dump when an error occurs by including it in your error handling
routine.
to demonstrate, consider the following code snippets that show
portions of a program exception/error subroutine (*pssr).
below is a pre-v5r1 technique demonstrating how to force a dump:
h debug( *yes 
d pssrerror 1n inz( *off 
c *pssr begsr
c if pssrerror
c eval *inlr = *on
c return
c endif
c eval pssrerror = *on
c dump
* insert code to handle exception
c endsr
notice that there is an h-spec specifying debug(*yes). this is a
...
下一页 摘要:
名片背后的故事
北京jeep二十年信息化建设回放
赵晓涛 2003-4-29
网络世界
去采访北京jeep以前,记者原本以为这种老国企(虽是合资,但中方比例很高)的信息化不容乐观,因为体制上的原因,老企业信息化失败的例子实在是太多了。但是北京jeep改变了我的想法,负责接待我的是北京jeep信息中心的车宁祖主任,互换名片后,记者首先发现名片上印着@bjc.com.cn的信箱。对于一些老企业来讲,经常使用的都是一些免费信箱,......