Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: timonkGood Day,
Unfortunately, there is not a quick and dirty way of doing this. The file input nodes do not have a "range" ability on input fields, nor is there a similar direct BRAINscript function that you could use in a filter node.
You will have to input the entire file, then use a filter to emit the fields you want to work with (or exclude the ones you don't)
For example:
emit Field1, Field2, Field3....Field20.
This can be a bit tedious. An option is to create a graph parameter, which lists the fields you want to input, then reference it wherever needed. Say you have a string parameter FOO, with value "field1,field2,field3" (ignore quotes when actualy using). Then use this in a filter node:
emit {{^FOO^}} # will emit field1, field2 and field3.
The parameter gives you the advantage of only needing to setup your string of input fields once. If for some reason you wanted to drop one of the fields in one place, but not another you can use the exclude statement
emit {{^FOO^}}
exclude field3
This also works in reverse:
emit *
exclude {{^FOO^}} # will exclude fields1-3, emitting all the rest.
The only other real method to approximate what you are asking, involves setting up a rather large (in your case) Do Output statement construct that would take more time in the long run, (as you would still have to type and list out each field you wanted, assign it a default value...then tie it into the Do Output) and would still require the use of a filter node.
Do you forsee having more complicated needs than simply emitting a leading subset of your data?
Regards,
Timon Koufopoulos,
MDA Support