Try the following ////////////////////// // declare script variables Dim( job_list, string ) Dim( more, number ) Dim( job_id, string ) Dim( job_name, string ) Dim( last_run, string ) Dim( report, string, " REPORT \r\n\r\n " ) // build job list JobList( "", job_list ) // parse the list Length(job_list, more) LoopWhile( more, END_LOOP ) // get next job ID GetToken(",", job_list, job_id ) // get job name, and last run time JobDescribe( job_id, "NAME", job_name ) JobDescribe( job_id, "LAST_RUN", last_run ) // append to the report ConcatEx( report, job_id, "\t", job_name, "\t", last_run, "\r\n", report ) Length(job_list, more) END_LOOP: // send report to the default printer Print( report ) ////////////////////// : I did the following steps and I get a "type mismatch" error on this : line: isEqual( job_list, "", no_more ) : Any ideas?
|