当我尝试使用此代码设置持续时间时:
Job job = new Job();
job.setName("5");
long dur = 1000;
job.setEstimatedDuration(1000);
job.setPriority(-1);
ZOSJobDefinition jobDef = new ZOSJobDefinition();
jobDef.setFlowTargetKey(new FlowTargetKey("CPU1"));
jobDef.setTaskType(TaskTypes.ZOS_JOB_TASK);
jobDef.setJclName("DMSORT");
job.setJobDefinition(jobDef);
我收到错误 EQQX489E 操作 CPU1 5 的持续时间无效,0 秒 * 100。我以与文档中相同的方式进行操作,但是,我也尝试:
long dur = Long.valueOf(1000);
job.setEstimatedDuration(dur);
和
long dur = 1000L;
job.setEstimatedDuration(dur);
但我仍然得到同样的错误。