Submit Multiple Job Definitions/Job Chains with same Time window/Submit frame in mass

Hi,
We have a requirement to submit multiple Job Definition/Job Chains which are part of common Time Window/Submit frame/Queue....
Ex. We have over 50+ different jobs/job chains which will runs Monday to Friday for every 2 hours on same Queue "XXX_Queue".  Instead of submitting each job/job chain manually, we would like to know if we could use any script that can achieve our requirement? since we have couple of other jobs which fall under same scenarios...
We are on M33.104 version. Please let me know if any one has any scripts or alternate way of submitting multiple jobs/job chains in mass.
Thanks in advance!
Nidhi.

Hi Nidhish,
Here is some code to set some stuff on a job:
//Get the partition, for global this is not necessary as global is default
Partition part = jcsSession.getPartitionByName("GLOBAL");
//Get the job definition
JobDefinition jobdef=jcsSession.getJobDefinitionByName(part, "System_Info");
//Get the submit frame
SubmitFrame sf = jcsSession.getSubmitFrameByName(part, "SF_Every_Year");
//Get the time window
TimeWindow tw = jcsSession.getTimeWindowByName(part, "System_Week_WorkingHours");
//Set the start time
DateTimeZone dtz = new DateTimeZone(2015, 10, 18, 15, 0, 0, 0);
//Get the Queue
Queue SystemQ=jcsSession.getQueueByName(part, "System");
//Create the Job
Job infoJob=jobdef.prepare();
//Attach queue to job
infoJob.setQueue(SystemQ);
//Attach submit frame, time window, start time
infoJob.setSubmitFrame(sf);
infoJob.setTimeWindow(tw);
infoJob.setRequestedStartTime(dtz);
//Print out the jobid of the job
jcsOut.println(infoJob.getJobId());
//Submit the job
jcsSession.persist();
Regards,
HP

Similar Messages

  • CUOM 2.3 sends multiple notifications for Event StoppedGSUPerformancePolling with same time stamps

    Hi Alll,
    I have a CUOM Version 2.3 which shows mutiple notifications per Device for Event StoppedGSUPerformancePolling with same time stamps. The message below is generated from the default All_Events for all devices.
    Does anyone have a solution for that.
    Regards Michael
    This message is generated 8 times with the same time stamp in all messages.
    ** This message is generated from Cisco Unified Operations Manager **
    ALERT ID                = 00012OW
    CREATION TIME           = Sat 30-Oct-2010 16:31:57 CEST
    MODIFIED TIME           = Sat 30-Oct-2010 17:00:58 CEST
    STATUS                  = Active
    SEVERITY                = Critical
    MANAGED OBJECT          = 183.201.141.193
    MANAGED OBJECT TYPE     = VoiceGateway
    ASSOCIATED EVENTS       =
        Cleared:183.201.141.193:Unresponsive
        Active:183.201.141.193:StoppedGsuPerformancePolling
    CUSTOMER IDENTIFICATION = Voice Port
    CUSTOMER REVISION       = Voice Port

    if you get SNMP timeout on multiple devices then the fault usually lies in the path that the polling follows to get to these devices and back to the server.
    The problem obviously lies in the part path they have in common.
    It is not unusual to see the highest backbone loads during the night, due to backups being taken.
    Make sure the most important inter-switch links have no errors.
    I would rather fix this then turn off alerting.
    Cheers,
    Michel

  • Regarding "Data does not match the job definition; job terminated"

    Dear Friends,
    The following job is with respect to an inbound interface that transfers data into SAP.
    The file mist.txt is picked from the /FI/in directory of the application server and is moved to the /FI/work directory of application server for processing. Once the program ends up without any error, the file is moved to /FI/archive directory.
    The below are the steps listed in job log, no spool is generated for this job and it ended up with an error "Data does not match the job definition; job terminated".Please see below for more info.
    1.Job Started
    2.Step 001 started (program Y_SAP_FI_POST, variant MIST, user ID K364646)
    3.File mist.txt copied from /data/sap/ARD/interface/FI/in/ to /data/sap/ARD/interface/FI/work/.
    4.File mist.txt deleted from /data/sap/ARD/interface/FI/in/.
    5.File mist.txt read from /data/sap/ARD/interface/FI/work/.
    6.PD-DKLY-Y_SAP_FI_POST: This job was started periodically or directly from SM36/SM37 (Message Class: BD, Message Number : 076)
    7.Job PD-DKLY-Y_SAP_FI_POST: Data does not match the job definition; job terminated (Message Class : BD, Message No. 078)
    8.Job cancelled after system exception
    ERROR_MESSAGE
    Could you please analyse and come up about under what circumstance the above error is reported.
    As well I heard that because of the customization issues in T.Code BMV0, the above error has raised.
    Also please note that we can define as well schedule jobs from the above transaction and the corresponding data is stored in the table TBICU
    My Trials
    1. Tested uplaoding an empty file
    2. Tested uploading with wrong data
    3. Tested uploading with improper data that has false file structue
    But failed to simulate the above scenario.
    Clarification Required
    Assume that I have defined a job using BMV0. Is that mandatory to use the same job in SM37/SM36 for scheduling?
    Is the above question valid?

    Hi dharmendra
    Good Day
    How are you
       I am facing the same problem which you have posted
    By any chance have you got the soultion for this
    If so please let me know the solution for this.
    Thanks in advance.
    Cheers
    Vallabhaneni

  • Not executed jobs with satisfied time windows ?

    Hello all,
    I have encountered a weird situation with scripts and jobchains that are using a time window. These scripts and jobchains are also using in their enclosing jobchain a pre condition that test whether their time window is satisfied or not (its status is set to 'skipped' if not).
    For the execution of last friday, these scripts and jobchains went to the status 'Skipped' although the related time windows were satisfied:
    TW specified to run on Friday (job planned for friday and not the following day)
    TW specified to run on the last workday of the month (job planned for friday and not the following day)
    So we have just made some tests with ad hoc script, jobchains and time windows to run on:
    Monday
    the first workday of the month
    Both of the tests worked.
    For information, these jobs have always run successfully (when needed) on others environments.
    Have you any idea of what is going on with these time windows?! what could be the cause of that behavior?
    Thanks anyway for your help.
    Regards,
    Yi Jiang

    Hi Yi,
    That's no problem, the cause is clear so this thread is useful because other people may also run into this.
    Maybe a tip that could fix your issue: if you do not use systimestamp to verify if the time window is open, but use the (planned) starttime of the chain, you can avoid this issue.
    By looking at if the starttime of the chain was on a day in a given timewindow, it no longer matters if the chain runs over midnight.
    You may need to change other things too, because in this second case, you cannot use a real time window on the call because that would still be taken into account and if you run over midnight, the window may not be open.
    So in this second scenario, you need:
    - a separate parameter P_TIME_WINDOW (and P_TIME_WINDOW_PARTITION) on the call to indicate which time window the precondition should follow; the call itself will no longer have an actual time window
    - a changed precondition, using the starttime of the chain and the parameter P_TIME_WINDOW (and P_TIME_WINDOW_PARTITION) on the call to determine if the call should run or not
    Let me know if you need more information.
    Regards,
    Anton Goselink.

  • Will it be possible to run several jobs in background at the same time?

    Hi!
    The new release looks promising. Look forward to hear more in Birmingham.
    Just now we have a problem. It have to do with functionality In Toad compared to SQL Developer.
    Will it be possible to run several jobs in background at the same time. Toad allows that.
    If yes: How can we make that happen?

    "Jobs" are always background.
    But I take you mean queries. Yes, since v1.5.x you can open an Unshared SQL Worksheet (ctrl-shift-n or the toolbar button).
    Have fun,
    K.

  • DSS chained with same id...

    Hi,
    When deploying an enterprise app via netbeans (which used to work ok, but that was like a month ago) I get the following error. I don't seem to find any clue on google but maybe some of you know what I should take a look at.
    Thanks!
    Vaak
    pre-run-deploy:
    Checking for missing JDBC drivers ...
    Start registering the project's server resources
    Finished registering server resources
    Distributing C:\Sun\WSNConnect-v3\dist\WSNConnect-v3.ear to [localhost:4848_server]
    Start registering the project's server resources
    Finished registering server resources
    deployment started : 0%
    Deploying application in domain failed;
    Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Network protocol exception: DSS chained with same id at end of same id chain parse.  The connection has been terminated.
    Error Code: 0
    Deployment error:
    The module has not been deployed.
    See the server log for details.
            at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
            at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:357)
            at org.apache.tools.ant.Target.performTasks(Target.java:385)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
            at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
            at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
            at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
    Caused by: The module has not been deployed.
            at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
            ... 16 more
    BUILD FAILED (total time: 8 seconds)

    I still don't fully understand what went wrong, but it was solved by changing the user of my database (derby) to my default admin one instead of a new application specific user I used before.
    update: It seems a hyphen ( - ) in the username is not appreciated...

  • What happens when a Stored procedure shared by two jobs and get called at same time ?

    Hi All, 
    Not sure its the right way to do it , I wrote a MASTER SP which calls three different SP using variables passed to MASTER SP.
    MASTER SP calls the three SP using EXECUTE IMMEDIATE COMMAND, My question imagine two jobs (Job1) and (Job2) running same time and calling MASTER SP but passing different varaibles what happens here does Job2 wait for Job1 to complete or does SQL Server
    or any database engine clever enough to create two copies of MASTER SP to exeucte the varaibles passed by Job1 and Job2 so it can run in parallel.
    Thanks
    sri 
    Sri.Tummala

    Its Oracle so you need to post it in Oracle forums like
    https://community.oracle.com/community/database/oracle-database-options/sql_and_pl_sql
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • JVM 1.3.1_06 Solaris 8 (sparc) multiple jvm's crash at the same time

    Hi All,
    I had multiple jvms crash all at the same time today morning, i was wondering if anyone had any similar issues with 1.3.1_06:
    Only a few jvms left an hs_errpid.log: here is the one with the most info:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 10 occurred at PC=0xff02f8f8
    Function name=VerifyClassCodes
    Library=/www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/lib/sparc/libjava.so
    Current Java thread:
    at java.lang.Shutdown.halt(Native Method)
    at java.lang.Shutdown.exit(Shutdown.java:209)
    at java.lang.Terminator$1.handle(Terminator.java:33)
    at sun.misc.Signal$1.run(Signal.java:193)
    at java.lang.Thread.run(Thread.java:479)
    Dynamic libraries:
    0x10000 /www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/bin/../bin/sparc/native_threads/java
    0xff350000 /usr/lib/libthread.so.1
    0xff340000 /usr/lib/libdl.so.1
    0xff200000 /usr/lib/libc.so.1
    0xff330000 /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
    0xfe400000 /www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/lib/sparc/hotspot/libjvm.so
    0xff2d0000 /usr/lib/libCrun.so.1
    0xff1e0000 /usr/lib/libsocket.so.1
    0xff100000 /usr/lib/libnsl.so.1
    0xff0d0000 /usr/lib/libm.so.1
    0xff1c0000 /usr/lib/libmp.so.2
    0xff090000 /www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/lib/sparc/native_threads/libhpi.so
    0xff060000 /www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/lib/sparc/libverify.so
    0xff020000 /www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/lib/sparc/libjava.so
    0xfe7d0000 /www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/lib/sparc/libzip.so
    0xfe3e0000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
    0xfe390000 /www/gmgwh/weblogic/jdk/j2sdk1_3_1_06/jre/lib/sparc/libnet.so
    0xfe230000 /usr/lib/nss_files.so.1
    0xfe160000 /www/gmgwh/weblogic/6.1/sp4/lib/solaris/libmuxer.so
    0xfd0e0000 /usr/ucblib/libucb.so.1
    0xfd090000 /usr/lib/libresolv.so.2
    0xfd050000 /usr/lib/libelf.so.1
    0xfafd0000 /app/oracle/product/8.1.7.4/lib/libocijdbc8.so
    0xe1800000 /app/oracle/product/8.1.7.4/lib/libclntsh.so.8.0
    0xfafb0000 /app/oracle/product/8.1.7.4/lib/libwtc8.so
    0xfaf90000 /usr/lib/libsched.so.1
    0xfaee0000 /usr/lib/libaio.so.1
    Local Time = Wed Jan 19 09:09:31 2005
    Elapsed Time = 22367
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_06-b01 mixed mode)
    #

    hi there
    i would direct my efforts to search for the culprit on who generated the signal (either a INT, TERM or HUP). The crash occurred is just but another side-effect. The VM received a shutdown signal and shld exit. Just that while exiting, it crashed.
    There is this bug
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4904881
    Which is pretty rare. I am not sure if you are encountering this bug but if u have a core, a pstack of the core should show > 2 threads with doing the signal shutdown.

  • New Camera RAW in Photoshop CC 2014 won't open multiple Panasonic RAW (.rw2) at the same time from Windows Explorer.

    New Camera RAW in Photoshop CC 2014 won't open multiple Panasonic RAW (.rw2) at the same time from Windows Explorer.  If I select 2 raw files and click "Open" Camera RAW will only open 1 raw, then when I click "Done" it will close and open the second, sequentially.  Previous Photoshop CC and RAW worked fine, it would open mulitple RAW at the same time.  How do I fix this?

    If it worked for you that way previously there isn't much to comment about. I just tried opening multiple images from Windows Explorer with Photoshop CS6 and Camera Raw 8.6, and the first image would open and when I clicked cancel then the second image would open. But if I wanted multiple images opened in Camera Raw to work on them simultaneously it was necessary for me to open them from Bridge. I just did it as an experiment because I normally use Lightroom. Anyway, IF it was a feature at one time to work as you described, it doesn't seem to be that way now.

  • Dispatch center - Select multiple tasks for scheduling at the same time

    Hi!
    I need a consultation regarding Dispatch center. Is there a functionality to select multiple tasks for scheduling at the same time for one resource?
    Please, guys, this is urgent.
    Jan

    You can schedule a single task or multiple tasks automatically directly from the
    dispatch center. The scheduling criteria applied come from Advanced Scheduler.
    Make Sure, you have the advanced scheduler. With out Advanced Scheduler and by just using Advice, you can only assign one task at a time.
    HTH
    ps: for more information, refer Field Service User Guide, "Scheduling Tasks"

  • "you can not use multiple instance of Program at the same time"

    Hello @ all,
    I have a Problem, after the installing from Acrobat Testversion and acrobat reader in version in "all Combination" 8 an 9.
    I get this misstake information "you can not use multiple instance of Program at the same time" if I want open more then 1 .pdf.
    If I have no pdf open, but acrobat/reader so i can´t open with the same Misstake.
    I have deinstalled and installed, Allways I bekame the same information. I tryed all things to clean and know i don`t know forward.
    Important: by Drag an Drop in the Acrobat Reader it is going, but by direct click on the pdf i get mistake.
    Maybe, you know what I can do!
    Thanks for help!

    Installation of both Acrobat and Reader in the same Windows machine is not advisable. If I were you, I would remove both completely and then reinstall the one you want to keep.

  • Is there a way to open multiple childs of Accordian at a same time

    Hi,
    Is there a way to open multiple childs of Accordain at a same time.
    My requiremnets is something like this:--
    Thanks for any help on this in Advance.
    Regards
    Munira

    You can have multiple nodes open on a tree, so I guess you could open them all up on a button click.
    Another option that might be possible is to use individual Accordians for each section and then use the click function to close the others.

  • In windows how do we install and activite multiple versions of tuxedo at the same time ?

    Hi All,
    In windows how do we install and activate multiple versions of tuxedo at the same time ?
    Advance wishes

    You can run different versions of Tuxedo on the same server, as long as they are installed in different directories.
    See PeopleTools 8.53 installation manual Task 3-1: Installing Oracle Tuxedo
    You can install Oracle Tuxedo once for each release on a machine, regardless of the number of PeopleSoft
    applications or databases the server supports. For example, if you are a PeopleSoft 9.1 customer and have
    Oracle Tuxedo 6.5 installed, you may install Oracle Tuxedo 6.5 and Oracle Tuxedo 11gR1 on the same
    machine in separate directories. For example:
    On Windows, you may install into C:\oracle\tuxedo11gR1_VS2010 and C:\tux65.
    On UNIX, you may install into /home/oracle/tuxedo11gR1 and /prod/tuxedo/6.5.
    E-TUX: Can Multiple Versions of Tuxedo Coexist on One Physical UNIX or Linux Server? (Doc ID 607828.1)

  • For the past month, I've had an echo of my voice while I'm talking on my phone.  It's very annoying and sounds like multiple people are speaking at the same time and it's only me.  Anyone know what's wrong?

    For the past month, I've had an echo of my voice while I'm talking on my phone.  It's very annoying and sounds like multiple people are speaking at the same time and it's only me.  Anyone know what's wrong?

    For the past month, I've had an echo of my voice while I'm talking on my phone.  It's very annoying and sounds like multiple people are speaking at the same time and it's only me.  Anyone know what's wrong?

  • Are there any apps for having seperate volume controls for each app if multiple apps are playing at the same time?

    Are there any apps for having seperate volume controls for each app if multiple apps are playing at the same time?

    I don't think you can do that the volume is universal, but maybe turn down the volumes in the app settings?

Maybe you are looking for

  • An error has occurred: Could not find the document.

    I get the "An error has occurred: Could not find the document." error when trying to open a URL using OpenDocument.  The URL is as follows: http://:<myserver>8080/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AZjCUhaL3c9Is.YxtGMc7K4&sIDType=CUID I

  • Updated to Snow Leopard 10.6.8 now I cannot print to my HP 4050 TN Laserjet nor scan from my Cannon 8800F

    I have looked high and low, and pretty much all over the internet for a solution to this problem, especially for the printer, which I use frequently. I have an HP 4050TN LaserJet printer that I had networked via ethernet to my iMac (when it was runni

  • Need to place the window only in last page in script

    Hi,   I want to place the footer window only in the last page.If it has 2 pages the footer window shhould come in second page only if there is only 1 page then it should come in the first page. can anyone tell me how to do this in Script.

  • Inter portlet communication, load order, portal server 7

    Hi. I�m struggling with a portlet application, which uses interportlet communication. PortletOne creates an ArrayList of objects and add the list to the portletSession. PortletTwo displays the first object in the ArrayList. The trouble seams to be th

  • Query Cost GL_JE_LINES

    Dear All, Im working on R12.1.1 and Database Version is 11.1.0.7. . . There are more than *33326139* in GL_JE_LINES Table and its cost is *228155*. I want to reduce its cost because the queries and reports which are using this table is performed very