Need to read a CSV file from remote server by using FTP stag

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Need to read a CSV file from remote server by using FTP stag

Post by sagar deshmukh »

Hi i have a CSV file as below
' '90028' 10: ADULT BB1' '12/08/2008' 10:54:02' '0000062744001' '0.95' '1'
' '90028' '10: ADULT BB1' '12/08/2008' 10:54:02' '0000062744002' '0.95' '1'
'' '90028' '10: ADULT BB1' 12/08/2008'

I need to read it from remore server. please let me know what setting i need to do, or any special stage i need to use?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Create your metadata like normal as if you were going to be reading it from a Sequential File stage and then load that metadata into the FTP stage. That or script a solution using command line FTP to get the file local to your DataStage server.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Post by sagar deshmukh »

can you please mail me the sulution to sagarddd@gmail.com please.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No. What exactly would I mail you? :?

Get a local copy of the file, make sure you can read it and then adding the FTP part should be fairly easy.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

sagar deshmukh wrote:can you please mail me the sulution to sagarddd@gmail.com please.
We don't do that, except sometimes in exchange for money, and particularly not to non-work email addresses. You might be a spy from the "dark side" for all we know!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply