If the comma delimited file will contain the same number of fields each time, create a file on the i5 that matches the coma delimited file. Use CPYTOIMPF to move the file from the IFS to the i5. Call it FILEA.
Then create a file with two fields, one to hold the field containing the ‘abc123′ as the key filed and the second field to hold the ‘one, two, three….’ data (DATA_FIELD). Call it FILEB
Then use the pseudo code below.
DOW not %EOF(FILEA);
Chain (key_field) FILEB;
DATA_FIELD = %TRIM(DATA_FIELD) + ‘,’ + DATA_FIELD _FROM_FILEA;