Page 1 of 1

Using a captured variable in the filenames of a split files filter?

Posted: Thu Aug 31, 2017 2:40 am
by dfhtextpipe
Help for the Split files filter indicates that the split filenames can make use of @macro
You can insert macros by preceding their name with @
Is it also feasible to make use of a captured variable in the split filename specifier?

Best regards,

David

Re: Using a captured variable in the filenames of a split files filter?

Posted: Tue Sep 05, 2017 10:29 pm
by DataMystic Support
Captured variables and macros share the same namespace, so yes.

Re: Using a captured variable in the filenames of a split files filter?

Posted: Wed Sep 06, 2017 7:17 pm
by dfhtextpipe
Capture text to a variable often requires the use of Restrict to each line in turn.

Would this cause any problems for the Split files filter?

David

Re: Using a captured variable in the filenames of a split files filter?

Posted: Wed Sep 06, 2017 9:16 pm
by DataMystic Support
Quite possibly if you are relying on splitting after xx lines, but if you can split on a pattern you can work around this.