on 08-28-2015 8:50 AM
Hello,
I search for a good guide to scheduling Jobs in SAP CPS with Redwood Scripting, because I starts with this Topic.
Do somebody know a good guide and can tell me, where I can download it?
Best Regards,
Jan
Hello Gerben,
Thx for your advice, but I don't found an good example. I want to schedule jobs like (Mo-Fr. 5:00 PM) and found only script like this:
{
Partition part = jcsSession.getPartitionByName("ICR");
JobDefinition jobdef=jcsSession.getJobDefinitionByName("JAN_TEST_BCDELMAILQUEUE");
SubmitFrame sf = jcsSession.getSubmitFrameByName("Hauni_Stuendlich");
TimeWindow tw = jcsSession.getTimeWindowByName("System_Week_WorkingHours");
DateTimeZone dtz = new DateTimeZone(2015, 10, 18, 15, 0, 0, 0);
Queue SystemQ=jcsSession.getQueueByName(part, "ICR_Queue");
Job infoJob=jobdef.prepare();
infoJob.setQueue(SystemQ);
infoJob.setSubmitFrame(sf);
infoJob.setTimeWindow(tw);
infoJob.setRequestedStartTime(dtz);
jcsOut.println(infoJob.getJobId());
jcsSession.persist();
}
Could you me write, which the right method for periods like (Mo-Fr. 5:00 PM) is?
Best regards,
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The online help contains some samples to submit jobs. Have a look at those.
Regards Gerben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.