![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I have to create a report text file but in special format base on information from a tables data. The text file I need to create it in a particular folder with this format: Report Date 5/24/2005 Batch: 001 From position: 532 To position: 543 Description: bla bla bla... How can i do this using DTS? Like you see I have to replace the info with a info from the table... I know how to create files using file system object but to replace the format ??? Tks in advance JFB |
#3
| |||
| |||
|
|
Whilst this looks like a header is there any conventional data? If there is you could write a header text file and pump to a data text file and then do COPY A+B C If not and your data is simply telling us what we see then it is kinda not really a native DTS task thing. Sure we could "massage" it into doing it but that wouldn't be better than simply writing to a text file with info stored in GVs from your package using FSO Allan "JFB" <help (AT) jfb (DOT) com> wrote Hi All, I have to create a report text file but in special format base on information from a tables data. The text file I need to create it in a particular folder with this format: Report Date 5/24/2005 Batch: 001 From position: 532 To position: 543 Description: bla bla bla... How can i do this using DTS? Like you see I have to replace the info with a info from the table... I know how to create files using file system object but to replace the format ??? Tks in advance JFB |
#4
| |||
| |||
|
|
Hi All, I have to create a report text file but in special format base on information from a tables data. The text file I need to create it in a particular folder with this format: Report Date 5/24/2005 Batch: 001 From position: 532 To position: 543 Description: bla bla bla... How can i do this using DTS? Like you see I have to replace the info with a info from the table... I know how to create files using file system object but to replace the format ??? |
#5
| |||
| |||
|
|
Hi JFB, "JFB" wrote: Hi All, I have to create a report text file but in special format base on information from a tables data. The text file I need to create it in a particular folder with this format: Report Date 5/24/2005 Batch: 001 From position: 532 To position: 543 Description: bla bla bla... How can i do this using DTS? Like you see I have to replace the info with a info from the table... I know how to create files using file system object but to replace the format ??? I'm not absolutly sure what you want, but AFAIU you can query the values you need with a sql query task and store them via output parameter as global variable. Then you can use this inside an activeX task to create the file and write the values to it. If this should only be the header, you have to create a second file as transform output for data and then copy them together. HTH Helge |
#6
| |||
| |||
|
|
Tks for you reply Helge, How can I create a header with that particular format? I want to be able to replace the values of this file... I don't want to put it together because I'm going to print this header later. |
![]() |
| Thread Tools | |
| Display Modes | |
| |