sqlcode -901 sqlstate 58004
Explanation: SQL system error
Any ideas what could be causing this extremely vague error message?
--
Troy Paulson
tpau...@nsc-inc.com
--
Kaarel Truuvert
DB2 UDB Development
<truu...@ca.ibm.com> wrote in message news:3934247B...@ca.ibm.com...
Sorry about the confusion...
Troy,
As advised by others, contacting your IBM service provider is likely
your best option. On AS/400 more detailed messages describing the
problem are normally found in the job log. If you know which job
incurred the error, view the detailed messages in the job log. For
example if it occurs in a program you can call interactively, or via SQL
statements you can enter interactively from within STRSQL, you could do
this to view the messages in your current (interactive) job:
===> WRKJOB OPTION(*JOBLOG)
... then use F10 to display detailed messages. When you see a message
that may be related - eg prior to the SQL0901 "SQL system error" message
- position the cursor over it and use F1 for more info.
Otherwise if the error occurs in a batch or "server" job, find the job
while still active using (for example) the WRKACTJOB command, then
option 5, then option 10 (Display job log). Or if the batch/server job
ends, find the QPJOBLOG spooled file for the job, if one was produced.
Depending on environment, finding the QPJOBLOG file may require
different commands... try WRKSPLF or WRKOUTQ QEZJOBLOG for starters.
Another tip if you can recreate interactively - turn on program debug
first using this command: STRDBG UPDPROD(*YES). This will cause DB2 to
insert additional info messages in the job log that can sometimes aid in
problem determination.
--
Karl Hanson
Karl Hanson <kcha...@us.ibm.com> wrote in message
news:393522EC...@us.ibm.com...
If you can stop using the debugger at the point of failure, see if you
can view the job log there. You can sign on to another session and use
WRKACTJOB, or use SysReq option 3 (Display current job).
It's possible your program is operating in "SQL Server Mode". In that
case info at this FAQ web page may help:
http://www.as400.ibm.com/db2/clifaq.htm
If this is the case, SQL requests are processed in separate server
(prestart) jobs, and the message SQL7908 can be used to find that job.
Good luck!
--
Karl Hanson
Message ID . . . . . . : MCH5003 Severity . . . . . . . : 40
Message type . . . . . : Escape
Date sent . . . . . . : 05/31/00 Time sent . . . . . . : 13:44:57
Message . . . . : Scalar operand contains a value that is not valid.
Cause . . . . . : The length of the invalid scalar operand is 7. The bit
offset to the invalid field is X'0001'. The operand number is 2. The
invalid data is X'03080000000000'.
I'll probably have to contact IBM to get this resolved.
Karl Hanson <kcha...@us.ibm.com> wrote in message
news:3935409D...@us.ibm.com...