Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write File Transformation

Status
Not open for further replies.

closesupport

IS-IT--Management
Jun 16, 2003
15
GB
I need to use the Write File Transformation to write multiple rows to a series of files. The filenames need to come from data so it looked like this type of transformation would be good. Test data looks like:

rowdata destinationfile
======= ===============
row1 file1.txt
row2 file1.txt
row3 file1.txt
row4 file2.txt
row4 file2.txt
row5 file1.txt

The transformation is set to append the data to the files.

The result is that the row data appears on one line in the output files. I need each row to appear as a separate line.

Am I heading in the right direction? How can I achieve multiple rows in the files?

TIA

Pete
 
I think I may have answered this myself! I appended each data row with

+ CHAR(10 + CHAR(13)

and that did the trick. There may wel be a more elegant solution??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top