在将SQR API Ware的过程中,需要将#Include 'setenv.sqc' 和#Include 'stdapi.sqc'加入到SQR中。
但是出现如下错:
(SQR 3506) Array specified not defined with CREATE-ARRAY
原因是没有加入#Include 'datetime.sqc' 。
于是在SQR中加入:
#Include 'setenv.sqc'
#Include 'datetime.sqc'
#Include 'stdapi.sqc'
结果又出现如下错误:
Error on line 96: (SQR 1933) The month (9月 -2012_02:01:36.000000_下午) is not valid for the current locale or database. SQR for PeopleSoft: Program Aborting.
解决办法是在SQR程序中加入如下代码:
begin-setup
#Include 'setupdb.sqc'
end-setup