I have written a small batch script in dos, that invokes a datastage job and waits for it to complete. If it completes successfully, it FTPs some files to the Unix box and runs the same program again. If the program fails, the script stops. I am getting a
Code: Select all
Error 81002 waiting for job
Status code = 81002
Heres a snippet of my batch code
Code: Select all
cd C:\DataStageBackups\01-11-2006
ftp -i -s:C:\RECCNTRFTPScript.txt cinhapps31
dsjob -server cinhapps31 -user user -password passwd -run -mode RESET UAT MASTERSEQ
dsjob -server cinhapps31 -user user -password passwd -run -mode NORMAL -jobstatus -param INTR_RETURN_FILE=dl.out -param MNI_RETURN_FILE=al.out -param IN_PROC_DATE=2006-01-10 UAT MASTERSEQ
IF ERRORLEVEL 2 GOTO Stop
cd C:\DataStageBackups\01-12-2006
ftp -i -s:C:\RECCNTRFTPScript.txt cinhapps31
dsjob -server cinhapps31 -user user -password passwd -run -mode RESET UAT MASTERSEQ
dsjob -server cinhapps31 -user user -password passwd -run -mode NORMAL -jobstatus -param INTR_RETURN_FILE=dl.out -param MNI_RETURN_FILE=al.out -param IN_PROC_DATE=2006-01-11 UAT MASTERSEQ
IF ERRORLEVEL 2 GOTO Stop
:Stop
pause