Hi I am getting sqlcode 901 when running rpgle program from db2 store procedure
When I call the same db2 procedure from rpgle code no errors appear.
Here is the problem part of the Code
select TIMESTAMP_FORMAT(char(20240101),'YYYYMMDD') into :tmpt FROM sysibm.sysdummy1;
This will return sqlcode 901 when calling from db2 procedure
If change 20240101 to '20240101'
(Numeric to char) then no errors appear
------------------------------
doron perlstein
------------------------------