Hi,
I am trying to automate they pull of a flat file from a mainframe (not a website) using FTP and I am running into this error:
Error: Run Command (1): The external program "C:\Users\cpoles\Desktop\pull_ahead\alteryxpull.bat" returned an error code: 2
Here is the article I have been using (hoping I could reverse the process ) as a guide.
What I have done so far:
- Created a .bat file with the Alteryx command and the file name of the script I wrote:
- Here is the text of my script
ftp
open host.name
username
password
cd..
cd AAPLT28
cd GDIAOPA
cd I85##
cd CMMS51IA
ascii
lcd c:\temp
get BRIG26H I85##
bye
exit - Here is how I have configured my run command tool:

I have searched the Alteryx community site for help but all the articles out there give instructions for an FTP pull that comes from a website not a mainframe. Any help you could provide would be much appreciated.
Thanks!
Courtney