I need to run a batch file in windows to FTP data. The problem is when I schedule it, the job will only ended ok after 1 hour +. The sysout of the job showed that the ftp is completed, but the job status in Control-m still executing. I'm new with this. Please help.
My Ftp.bat contains;
c:
cd \ICCSData\PDDATA
inward.exe
copy 5014*.INW DPS.DAT
ftp -s:C:\ICCS\FTP\scriptftptobh.ftp 10.200.212.20
del DPS.DAT
del inward.exe
del 5014*.INW
Need help with Windows .bat
It seems quite the same things that the following link, you must verify fixpack level.
So about _exit code, here is BMC documentation
So about _exit code, here is BMC documentation
_exit
This utility is similar to the UNIX exit built-in shell function.
The utility is located in the <CONTRL>\EXE directory path that was
created during the installation procedure.
Format
The variable <exit> is any whole number Š 0 Default: 0
The program exits with %errorlevel% = <exit>
Examples
_exit 0 in a script causes the job to end with %errorlevel% 0.
_exit 1 in a script causes the job to end with %errorlevel% 1.
_exit [<exit>]
ctmcreate -tasktype command -cmdline "_exit 0"
ctmcreate -tasktype command -cmdline "_exit 1"