routine for ftp?

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
SHARAD123
Premium Member
Premium Member
Posts: 54
Joined: Wed Jan 09, 2008 12:05 am

routine for ftp?

Post by SHARAD123 »

Hi,
Can anyone tell me whats the code to FTP using a routine in datastage? Also the file that is FTPed has to be archived.
Thanks in advance
222102
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

Command = "(pathname of FTP script) && (command to archive)"
Call DSExecute("DOS", Command, Output, ExitStatus)
Last edited by ray.wurlod on Tue Jan 29, 2008 1:11 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SHARAD123
Premium Member
Premium Member
Posts: 54
Joined: Wed Jan 09, 2008 12:05 am

Post by SHARAD123 »

Thanks.
222102
Post Reply