jtexas
Fleet Admiral
- Joined
- Oct 13, 2003
- Messages
- 8,646
accountant needs a little programming guidance...
I'm using an excel visual basic program to open a dos window to upload and/or download mainframe files using the FTP command. I want to capture the mainframe response, completion codes, error codes, that sort of thing.
this is the batch file:
m:
cd m:\
FTP -s:FTPLIST.FTP xxx.xxx.com
ren wait.ftp done.ftp
exit
Where xxx.xxx.com is our host mainframe, FTPLIST.FTP is a text file with the logon script & file info, and "done.ftp" is just to signal the vbasic program that FTP is done. That part works fine, but the dos session goes by too fast to read the codes if an error occurs. I can tell If a download is unsuccessful by the fact that the downloaded file has size = 0, but no indication of what caused the failure.
If I could log the dos session to a file I could get 'em that way - is there a dos command for that?
thanks!
I'm using an excel visual basic program to open a dos window to upload and/or download mainframe files using the FTP command. I want to capture the mainframe response, completion codes, error codes, that sort of thing.
this is the batch file:
m:
cd m:\
FTP -s:FTPLIST.FTP xxx.xxx.com
ren wait.ftp done.ftp
exit
Where xxx.xxx.com is our host mainframe, FTPLIST.FTP is a text file with the logon script & file info, and "done.ftp" is just to signal the vbasic program that FTP is done. That part works fine, but the dos session goes by too fast to read the codes if an error occurs. I can tell If a download is unsuccessful by the fact that the downloaded file has size = 0, but no indication of what caused the failure.
If I could log the dos session to a file I could get 'em that way - is there a dos command for that?
thanks!