How to write a FTP transfer in Basic

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
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

Emma,

There is an FTP stage that comes with DataStage. I don't know if it's what you need or not.

Tony
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Emma

The easiest way is to automate in a shell script and execute the shell script.

Kim.

Kim Duke
DwNav - ETL Navigator
www.Duke-Consulting.com
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's pretty much impossible to do directly in BASIC because most FTP clients don't have an API that can be called from BASIC. Further, most FTP clients do not permit redirection of the password.

You could, of course, have your BASIC create a shell script containing all the contents needed for your FTP (using WriteSeq statements) then executed that (via DSExecute).

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Post Reply