when i execute the following statament inside an SQLRPGLE i receive error
26501 (after open) and 42601 after prepare , but if i try to run the same
statement from ACS script SQL function, it works fine ; can some help me to
understand which could be or hot to find the the problem ?
Thanks in advance
'A' AS ID,
IFNULL(CAST(NULL AS DEC(9, 0)), 0) AS AETNR
WHERE (A1DAT BETWEEN 20220525 AND 20220525
OR A1DAT = 00000000)
AND A1NOM <> ''
AND A1NOT <> 'XXXXXXXXXX'
AND A1NOT <> '**********'
AND A1NOT <> 'XXXXXXXXX'
AND A1COD IN (
SELECT AETDDS AS A1DAT,
'B' AS ID,
IFNULL(CAST(NULL AS VARCHAR(3)), ' ') AS A1COD,
IFNULL(CAST(NULL AS DEC(6, 0)), 0) AS A1ORA,
WHERE AETCBL = 'S'
AND (AETDDS BETWEEN 20220525 AND 20220525)
ORDER BY 1,
FOR READ ONLY
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.