hello
I am new to the atleryx macro writing, and hope you can help.
The scenario i have is that i have different files that have varying number of columns, these columns will always have the same columns output order.
what i would like to incorporate into a macro is dynamic column import
I can code the cleansing and ordering, what i need is how to code the connection from a file to the macro
so the fruits below are different columns, the macro is assumed as the same macro in all examples
_______________________________________________________________
example 1
APPLE PEARS BANANA ORANGES
these columns are parsed into the macro and outcome is always
APPLE PEARS GRAPES BANANA PLUMS ORANGES
_______________________________________________________________
example 2
PEARS BANANA
these columns are parsed into the macro and outcome is always
APPLE PEARS GRAPES BANANA PLUMS ORANGES
_______________________________________________________________
example 3
PEARS BANANA PLUMS ORANGES
these columns are parsed into the macro and outcome is always
APPLE PEARS GRAPES BANANA PLUMS ORANGES
i would like to know how to code the below macro input, to accept any number of columns.(not limited to the column in the tool)

hope that makes sense
thanks in advance
Denny