Posted: Mon Jul 28, 2003 3:46 am
Massimiliano,
if the parameter names "NomeFile5", "Directory5" are wrong, i.e. the job in question doesn't have parameters named like that, DS will abort the controlling job by itself, as you specified:
hJob1 = DSAttachJob("OTCommonCopiaLog", DSJ.ERRFATAL)
if you do not want thsi you would have to say
hJob1 = DSAttachJob("OTCommonCopiaLog", DSJ.ERRWARN) or
hJob1 = DSAttachJob("OTCommonCopiaLog", DSJ.ERRNONE)
in that case you would have to control yourself if everything is OK. Maybe try the following:
ErrCode = DSSetParam(hJob1, "NomeFile5", "4")
ErrCode += DSSetParam(hJob1, "Directory5", "5")
If ErrCode Then
Call DSLogFatal("Prima della DSRunJob()!!!", "JobControl")
End
ErrCode = DSRunJob(hJob1, DSJ.RUNNORMAL)
If the error really lies with the DSRunJob statement, I think there something wrong with job "OTCommonCopiaLog"???
Stephan
if the parameter names "NomeFile5", "Directory5" are wrong, i.e. the job in question doesn't have parameters named like that, DS will abort the controlling job by itself, as you specified:
hJob1 = DSAttachJob("OTCommonCopiaLog", DSJ.ERRFATAL)
if you do not want thsi you would have to say
hJob1 = DSAttachJob("OTCommonCopiaLog", DSJ.ERRWARN) or
hJob1 = DSAttachJob("OTCommonCopiaLog", DSJ.ERRNONE)
in that case you would have to control yourself if everything is OK. Maybe try the following:
ErrCode = DSSetParam(hJob1, "NomeFile5", "4")
ErrCode += DSSetParam(hJob1, "Directory5", "5")
If ErrCode Then
Call DSLogFatal("Prima della DSRunJob()!!!", "JobControl")
End
ErrCode = DSRunJob(hJob1, DSJ.RUNNORMAL)
If the error really lies with the DSRunJob statement, I think there something wrong with job "OTCommonCopiaLog"???
Stephan