Let's say we want to dynamically create multiple files containing some data. How can that be achieved?
I tried the following for example, to output some data in multiple files on the fly:
file_names := DATASET([{'file_1'}, {'file_2'}], {STRING name});
ds := DATASET([{'a'}], {STRING val});
APPLY(file_names, OUTPUT(ds,, name, THOR));
But I got the following error:

This exact issue was reported in this JIRA ticket: JIRA HPCC-14754 which so far has not been resolved.
HTH,
Richard