How do i write multiple conditions in a routine? i need it like mentioned below , but i am getting compile errors when i do it like this. I tried putting all 3 conditions in brackets , tried comma , semicolon at the end still gives compile errors.
Code: Select all
If Status = DSJS.RUNFAILED Then
ErrCode = DSRunJob(JobHandle, DSJ.RUNRESET)
ErrCode = DSDetachJob(JobHandle)
ErrCode = DSRunJob(JobHandle, DSJ.RUNNORMAL)
ELSE
ErrCode = DSRunJob(JobHandle, DSJ.RUNNORMAL)
0054 ErrCode = DSRunJob(JobHandle, DSJ.RUNNORMAL) ELSE
^
"ELSEEOL" unexpected, Was expecting: ';', End of Line