Hi ,
I AM Using Ftp stage in my job & files at remote server are ~ Delimited
while doing ftp to some other Ftp area or into some sequential file
its adding extra data in the last & First Row.
like this--
Header~abc~110~exl
insert~gth~456~36~784~tyi~rxz~1388.00
Trailor~rty~345~tre
Above is the actual format of file now after Ftp my file looks like as below -
Header~abc~110~exl~0~0~0~0
insert~gth~456~36~784~tyi~rxz~1388.00
Trailor~rty~345~tre~784~tyi~rxz~1388.00
In actual its copying the row above for missing columns
can any one give me solution on this, one thing i can not change the file
format.
FTP STAGE
Moderators: chulett, rschirm, roy
Welcome! :D
The FTP stage is kind of a pain to use because it is metadata driven, unlike any other ftp. So you will have 'issues' like this using it for a file where the metadata changes from row to row.
Try defining the record as a single varchar field, telling it there are no delimiters and probably no quote characters as well. Sometimes that allows the record to be read in or written out unchanged in spite of the differences in the metadata.
That or fall back on a scripted call to command line ftp.![Confused :?](./images/smilies/icon_confused.gif)
The FTP stage is kind of a pain to use because it is metadata driven, unlike any other ftp. So you will have 'issues' like this using it for a file where the metadata changes from row to row.
Try defining the record as a single varchar field, telling it there are no delimiters and probably no quote characters as well. Sometimes that allows the record to be read in or written out unchanged in spite of the differences in the metadata.
That or fall back on a scripted call to command line ftp.
![Confused :?](./images/smilies/icon_confused.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 60
- Joined: Tue Jul 12, 2005 3:34 am
working ok
Thanks Its working Fine now
-
- Participant
- Posts: 60
- Joined: Tue Jul 12, 2005 3:34 am
Hi
its a bug with FTP I suppose but My purpose is Solved i just wanted to make a same copy to other location that i am getting just by defining
all the data into one big length varchar column.
but if You want to take data from delimited columns its still a bug
its adding records.
if you have any solution on this pls let me know.
Thanks in Advance
PK
its a bug with FTP I suppose but My purpose is Solved i just wanted to make a same copy to other location that i am getting just by defining
all the data into one big length varchar column.
but if You want to take data from delimited columns its still a bug
its adding records.
if you have any solution on this pls let me know.
Thanks in Advance
PK