dennysthemenace
Technical User
Hi
Can any one please let me know how to pass a file from DSTX to a FTP batch script? I used batch adapter to call a simple batch file to write and delete stuff, but I am not sure how to use it with FTP since it calls a script and gets the data from there. Below is the batch file and the script. I call the ftp batch file, but how can I can I pass the file name and file itself through the batch adapter to the batch file during run time? I appreciate any help. Thanks.
ftp -s:ftp.txt--- batch file
ftp>----script
open mainframe.net
user
pwd
prompt off
bin
quote site fixrecfm 500
quote site cyl
quote site pri=25
quote site sec=25
cd Apr19
mput test*.txt
Can any one please let me know how to pass a file from DSTX to a FTP batch script? I used batch adapter to call a simple batch file to write and delete stuff, but I am not sure how to use it with FTP since it calls a script and gets the data from there. Below is the batch file and the script. I call the ftp batch file, but how can I can I pass the file name and file itself through the batch adapter to the batch file during run time? I appreciate any help. Thanks.
ftp -s:ftp.txt--- batch file
ftp>----script
open mainframe.net
user
pwd
prompt off
bin
quote site fixrecfm 500
quote site cyl
quote site pri=25
quote site sec=25
cd Apr19
mput test*.txt