Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

downloading zip folder from FTP using bods

$
0
0

Hi guys

 

I need to download zip folder from ftp location using data services.. gone through few forum thread, but getting difficulty to understand them..

 

It would be very kind of you if anyone can help me to understand the code.

 

Data services 4.2 is installed on windows

 

trying to use Paul Kessler reply in http://scn.sap.com/thread/1809259 thread

 

Script in data services dataflow:-

Program executable:  \\ds server name\foldername\myftp.bat  
User name:  Intralocal (FTP username)  
Password:   Welcome123  
Arguments:  $AW_USER $AW_PASSWORD '\\ds server name\foldername\' 'zipfoldner_name.zip' 'ftp host address''\\ds server name\foldername' is the path to the FTP executable on your Windows server

 

do i need to give user name and password again in arguments?

 

In the job, Data Services will execute the this command string:

 

Myftp.cmd FTPUSER <password> 'local_path' 'zipfoldner_name.zip' 'ftp host address'

 

 


i have created the Myftp.cmd file using code (code copied from data designer guide) below:-

@echo off
set USER=%1
set PASSWORD=%2
set LOCAL_DIR=%3
set FILE_NAME=%4
set LITERAL_HOST_NAME=%5
set INP_FILE=ftp.inp
echo %USER%>%INP_FILE%
echo %PASSWORD%>>%INP_FILE%
echo lcd %LOCAL_DIR%>>%INP_FILE%
echo get %FILE_NAME%>>%INP_FILE%
echo bye>>%INP_FILE%
ftp -s%INPT_FILE% %LITERAL_HOST_NAME%>ftp.out

 

Question :-
do i need to give user name and password details in the cmd file? if yes then where to specify same like username =Intralocal


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>