Hello,
I select jobs from database and want to display their ExpectedRunTime in a script.
it = jcsSession.executeObjectQuery("select j.* from Job j where j.Description like '%Test%' order by j.Description asc");
while(it.hasNext()) {
Job j = (Job) it.next();
jcsOut.println("Job: " + j.getDescription());
jcsOut.println("Time: " + j.ForecastJob().getExpectedRunTime());
}
But it doesn't work. The jobs will be listed if I remark the last line.
How can I display the ExpectedRunTime of the jobs?
Best regards,
Dana Ullrich