FTP Complex file from one unix server to another

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
ms294
Participant
Posts: 19
Joined: Thu Mar 25, 2010 1:36 pm

FTP Complex file from one unix server to another

Post by ms294 »

Does any one know if we can FTP Complex file from one unix server to another with Dastage 7.5 ? I cann't use FTP-Plug in stage as it only work on standard file format, I want know if Datastage can ftp whole file instead of write stream from one server to another. Thanks !

Mark
shivajid2k
Participant
Posts: 19
Joined: Mon Feb 14, 2005 11:34 pm

Re: FTP Complex file from one unix server to another

Post by shivajid2k »

You can write a script and call it in before/after routine
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Did you try doing the transfer as a single column within the ftp stage?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ms294
Participant
Posts: 19
Joined: Thu Mar 25, 2010 1:36 pm

This is good hit

Post by ms294 »

DSguru2B wrote:Did you try doing the transfer as a single column within the ftp stage? ...
Good ideal, I'll try this. thanks !
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Make sure you tell it not to add anything to the file - quotes in particular.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ms294
Participant
Posts: 19
Joined: Thu Mar 25, 2010 1:36 pm

Post by ms294 »

chulett wrote:Make sure you tell it not to add anything to the file - quotes in particular. ...
Right, I tries put 000 for delimiter and quote which mean nothing, but FTP stage abroted with error "not valid delimiter and quote". is there way to get out of this ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hmmm... while that works in the Sequential File stage, you may just need to leave it blank in the FTP stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ms294
Participant
Posts: 19
Joined: Thu Mar 25, 2010 1:36 pm

Post by ms294 »

ms294 wrote:
chulett wrote:Make sure you tell it not to add anything to the file - quotes in particular. ...
Right, I tries put 000 for delimiter and quote which mean nothing, but FTP stage abroted with error "not valid delimiter and quote". is there way to get out of this ?
I solve this by set "no line terminator and no quote", thanks!
ms294
Participant
Posts: 19
Joined: Thu Mar 25, 2010 1:36 pm

Post by ms294 »

chulett wrote:Hmmm... while that works in the Sequential File stage, you may just need to leave it blank in the FTP stage. ...
Craig,

Do you have any experience with such process on Datastage 7.5 : I need check if flat file has empty records, if empty , no ftp sending, otherwise ftp send file to remote server. What stage may solve this file check ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can carry out these checks in the "telnet command" executed prior to the transfer.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or perhaps via a Sequence job, it could do the check and then decide whether to run the FTP job or not. Really depends on where/when you can check.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply