FTP text file from CD

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
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

FTP text file from CD

Post by ganesh123 »

Hi Gurus,

I want to perform following task :

I am getting new text file every month in CD format.
Now by DS which is installed in UNIX I want to run the job whose input file will be this file from CD. So I need to FTP text file from my client machine CD drive to UNIX. For this I want to write the script and use this script as before job subroutine in ETL job.

Any ideas gurus, please share?

Am I going correct ?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Welcome Aboard
It will be a standard ftp script. Search for more details. I believe there is a script in one of the posts that does the same.
What is CD format anyways?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

Post by ganesh123 »

I mean I am getting new files in Compact Disk.(CD) :o
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

Post by ganesh123 »

I want to do every thing automatic, just insert CD in drive and run the job from DS. Is it possible ?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I have never done anything like this before but I am assuming that a CD drive will be treated like just another drive. The ftp will be run from the unix box, so the id should have access to your windows platform. Rest is straight forward, fire the script, get the file, process it.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Once the CD is mounted in Unix, you should be able to access it as usual.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

Post by ganesh123 »

Hey kumar I donot have to mount the CD on unix, I have to mount it on my PC (client)which is windows and then start the job to run.
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

Post by ganesh123 »

So I guess I have to design 2 jobs in sequence

1) FTP the txt file from CD to Unix box
2) Use this file as source

Seq_txt_File------------TX--------------Database

Is this correct ?
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Correct.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

Post by ganesh123 »

Thank you DSGuru and Kumar. I really appreciate your time.
Post Reply