Creating FTP Script for MVS
Posted on 2005-03-14
I currently have the weekly task of downloading a series of flat files from the mainframe to text files that get pulled into MS-ACCESS for some reporting. Lots of typing and a waste of my time. What I want to do is create a script to do this for me as the file names going in and coming out are always the same. I'm thinking some kind of .bat file, but I will admit that I haven't done anything of this sort in a long long time.
Currently, I run FTP MVS from the Start>Run menu. It prompts user id and password. Then I type in something similar to:
GET 'NXXX.TESTO.MYFILE' C:\DATA\MYFILE.TXT and then repeat that line for each file, over and over. There has to be a better way.
Thanks! -- Coghan