If I had to guess I'd say your path is not correct to the text file.

You can put ? @serror after your open to see if it is finding it.

Also, a better way of using Open is with if (see the manual or link in my sig for more)


 Code:
if open(1, $outputdir + "\joblist.txt", 2)=0
  ;Check jobs run since last checktime for failures
  $x=Readline(1)
  Do
	$array3=split("$x", ",")
	$jobid=$array3[0]
	$type=$array3[1]
.
.
.
endif
_________________________
(... better days ahead)