My program has a select statement and it returns -811 as sql code, but when I check the table with same key, the table has only 1 row.
Selecr Query in pgm
-------------------------
SELECT PROFNUM, CUSTNUM, COUNTRY, OPRTIME, OPRUSER, STATUS, INAKTIME, INAKUSER
INTO : DCLVFUPPP.PROFNUM,
:DCLVFUPPP.CUSTNUM,
:DCLVFUPPP.COUNTRY,
:DCLVFUPPP.OPRTIME,
:DCLVFUPPP.OPRUSER,
:DCLVFUPPP.STATUS,
:DCLVFUPPP.INAKTIME :Ws-INAKTIME-INDI,
:DCLVFUPPP.INAKUSER :Ws-INAKUSER-INDI
FROM VFUPPP
WHERE CUSTNUM = : DCLVFUPPP.CUSTNUM
AND AKTIV = 'A'
INTO : DCLVFUPPP.PROFNUM,
:DCLVFUPPP.CUSTNUM,
:DCLVFUPPP.COUNTRY,
:DCLVFUPPP.OPRTIME,
:DCLVFUPPP.OPRUSER,
:DCLVFUPPP.STATUS,
:DCLVFUPPP.INAKTIME :Ws-INAKTIME-INDI,
:DCLVFUPPP.INAKUSER :Ws-INAKUSER-INDI
FROM VFUPPP
WHERE CUSTNUM = : DCLVFUPPP.CUSTNUM
AND AKTIV = 'A'
I checked table for same customer num and got only 1 row where as above query in program is giving -811.
Please help.
Thanks in Advance,
Jo