When I execute the SQL with lots of Global Temporary Tables, it works fine.
When I call the stored procedure having the same SQL, it throws the below error.
SQL0138N: The second or third argument of the SUBSTR function is out of range.
Can any shed some light on it.
This is killing my time
Thanks