What I am trying to achieve is the ability to transfer files from the PC to the mainframe as well as then deleting those files after the transfer.
I have a solution, but would appreciate someone saying either "Yepp, that's roughly the way to go" or "No, MUCH simpler to do it this way instead"
I started by creating a DOS BAT file containing the following
echo on
"C:\Program Files\BlueZone\bin\BZFTP.EXE" /Fmichael.zft /A"C:\Users\userid\OneDrive - xxx\BlueZone\Transfer\PCTOTSO.BTL"
del "E:\xxx\userid.TEST.CLIST\Beyond_compare_PC_and_TSO_files\Merged_TSO_scripts\BACKUP*"
Michael is my standard configuration connnect file.
PCTOTSO.BTL contains this scenario
STOR "E:\xxx\userid.TEST.CLIST\Beyond_compare_PC_and_TSO_files\Merged_TSO_scripts\BACKUP" TEST.CLIST(BACKUP)
When I run this from a DOS window, I get prompted for my mainframe pw (as expected). The file is transferred as expected, and then Rocket waits
for me to close the connection (I like the fact that I can see the log results so I know the transfer worked).
Once I close the connection, the DOS command to delete the PC file is run.
Is this the way to go? There is no way of baking a DOS command into the BTL file ?
------------------------------
Michael Simpson
Rocket Forum Shared Account
------------------------------