There are four strings separated into two parts by vertical bar, namely: ID|DUE_DATE, 80781|2026–12–01, VARCHAR2|DATE, |yyyy-mm-dd.
The task is to generate a four-field result set by extracting the first and second parts of each string and writing them as separate records.
While SQL has limited string functions and lacks set related functions, SPL has built-in string processing functions that can parse strings into batch records.
esProc SPL is a suitable solution as it supports ordered sets and allows direct retrieval of set members by position.