Yes, the concatenated string can't be used because it's not the same type as the file parameter (STRING v FILENAME). Also all parameters are set at runtime so can't be altered during the translation. That's why that doesn't work.
Anyway, fanout appears a good option. If it doesn't work with the text file writer then you could just as easily use the CSV writer and try that. Alternatively you could put something together with the AttributeFileWriter transformer. That lets you specify the output file with an attribute value (your concatenated string). The only difficulty is that this transformer doesn't append, so you'd need to concatenate all of the lines of each output file together along with a /n to denote a new line, but that isn't difficult using VariableSetters and Retrievers. I can give you an example if required, but try the fanout first. Hope this helps Mark --- In [email protected], "Jeff Konnen" <[EMAIL PROTECTED]> wrote: > > Hi JD, > > I am not sure about the text file writer .... > But I'd try the dataset fanout :-) > > Jeff > > > On 6/12/07, jamison_leach <[EMAIL PROTECTED]> wrote: > > > > Good afternoon, > > > > I have an instance of Workbench with 7 Text file (.txt) > > Destination Datasets. All of these .txt files will have the same path > > and name, except for their file extension (such as Roads.X1, Roads.X2, > > Roads.X3, etc.). I want to be able to specify the path/name only once > > (at runtime in the translation parameters), and Workbench to then take > > this path/name and add the appropriate file extension. This is > > primarily for ease of use, so the user doesn't need to enter nearly > > identical information 7 separate times. > > > > In Workbench I can easily concatenate the path/name and the > > appropriate extension, but I can't find a way to set the text file's > > location to this concatenated string. I made the concatenated string a > > published parameter, so I could specify this string to be the > > path/name/extension for the Destination text files (using "Set to > > published parameter" for each Destination Dataset in the Navigator > > window). Unfortunately, "Set to published parameter" doesn't list my > > published parameter as an option. > > > > Has anyone dealt with this before? > > > > Regards, > > J.D. Leach > > U.S. Census Bureau > > > > > > > > > > -- > Jeff Konnen > INSER SA > Switzerland > +41 (0) 21 643 77 11 > For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com. Love FME? Then open your diary to March 6-7, 2008 and write this... "Second Worldwide FME User Conference - Must Attend!" See http://www.safe.com/company/fmeuc2008/index.php for more details. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/fme/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
