dsjob timeout issue
Posted: Sun Feb 12, 2006 1:25 pm
folks,
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
error even when the job runs successfully. Going through this forum, I found out that its a timeout issue, which makes sense, coz my job runs for almost 2 hrs. I tried to check do not time out in administrator, but I dont have the previlages. Is there a work around to make the status code return successful when the job runs successfully without timeout issues.
Heres a snippet of my batch code
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