Page 1 of 1

Accessing CSV files on local drive

Posted: Thu Feb 22, 2007 12:25 pm
by travissolt
Is there a way to access a CSV file on my local drive without FTP'n it into the UNIX environment.

Posted: Thu Feb 22, 2007 12:27 pm
by Krazykoolrohit
Open it Microsoft Excel.

Posted: Thu Feb 22, 2007 12:31 pm
by travissolt
Sorry should have been more specifc. I want to bring in a csv file as a source table in datastage but do not want to have to FTP it to unix first. Can datastage (unix setup) read csv or txt files off of a local drive.

Thanks

Posted: Thu Feb 22, 2007 12:34 pm
by Krazykoolrohit
Is there any restrictions on FTP? or its just that you dont want to add an extra step.

If there are no restrictions on FTP then you can use the FTP plugin stage to read the remote file

Posted: Thu Feb 22, 2007 12:35 pm
by ganesh123
No its not possible becoz your server software is loaded on Unix box. So you have to FTP to unix.

On your local machine there is only client part.

Posted: Thu Feb 22, 2007 12:39 pm
by Krazykoolrohit
OH. You you want to pick files from your client machine. Just like you open a testpad or something?

I dont think thats possible

Posted: Thu Feb 22, 2007 12:44 pm
by travissolt
When I used Informatica I could point to a table locally and bring it in as a source (say for an initial population or test load). I could also access the unix side if I wanted to store an output file. Just making datastage did or did not have the same functionality before I went down the FTP path.

Posted: Thu Feb 22, 2007 12:46 pm
by Krazykoolrohit
convert your client installation to server and you will have this functionality.

Its just that you cant access local files on the client machine unless you FTP it to the server.

Posted: Thu Feb 22, 2007 12:49 pm
by chulett
Your UNIX-based DataStage server needs to be able to 'see' your local drive in order to access files on it. You'd need to arrange an NFS mount or use something like Samba to enable that.

Posted: Thu Feb 22, 2007 12:59 pm
by travissolt
So the functionality is there it just needs to be setup. Is that something each user would have to establish or will the DBA's need to set it up on the box? If I sent your previous post to the DBA's would it give them enough info to figure it out.

Posted: Thu Feb 22, 2007 1:02 pm
by narasimha
It would be more of an 'SA' thing rather than a 'DBA'.

Posted: Thu Feb 22, 2007 2:01 pm
by ray.wurlod
Is this for a parallel job (as marked) or a server job (as posted)?

Posted: Thu Feb 22, 2007 2:07 pm
by travissolt
I would want to access the file in a parallel job (i think that is your question)

Posted: Thu Feb 22, 2007 2:11 pm
by ray.wurlod
... then why did you post in the Server forum?

Craig covered the possibilities; either use an FTP stage or use a facility like Samba that makes your Windows folders visible to your UNIX machine (as if they were mounted there) or vice versa.