Replies: 2 comments 11 replies
-
@vuxat Hi! What version of IBM i are you on out of curiosity? Generally we only support 7.3 and up and I'd be surprised if this doesn't work on 7.3 (I always use 7.3) |
Beta Was this translation helpful? Give feedback.
-
@vuxat Welcome to the wonderful world of IBM i...! The place where old habits rarely die... 🤣 Beware of DB2 on StackOverflow and other sites on the net - DB2 for i has some specialties different from the other DB2 products. Always check the SQL reference for IBM i first: https://www.ibm.com/docs/en/i/7.4?topic=reference-sql I have extracted the SPLIT function from SYSTOOLS on my IBM i 7.4 sandbox: HTH |
Beta Was this translation helpful? Give feedback.
-
Hi,
when I enable SQL support it throws error *N (38501) and it cannot load the library list.
I searched for the problem and found, that our IBM i Version is not up to date ...
Please add this to the Documentation for "Enable SQL":
If the IBM i Version is prior to 7.4 April 2021 (PTF Group SF99704 Level <= 11) then the library list cannot be retrieved, as the SPLIT command is not yet implemented.
https://www.ibm.com/support/pages/rpg-cafe-new-built-ins-lower-upper-and-split
src/api/IBMiContent.ts
SYSTOOLS.SPLIT(...)
If you feel bold enough and know a way to find out if SYSTOOLS.SPLIT is available or not
you could try to add a stand-in function in the temporary library (default = ILEDITOR) to mitigate this:
It looks a bit funky but it works. It is a variant from the following link I changed a bit on the last part.
For sure someone can come up with nicer code.
https://stackoverflow.com/questions/1305804/split-a-varchar-in-db2-to-retrieve-a-value-inside/10175295
Thank you.
Best regards,
Stefan
Beta Was this translation helpful? Give feedback.
All reactions