<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NCX94J4" height="0" width="0" style="display:none;visibility:hidden"></iframe>

WaitForAnyJobs function for IBM Planning Analytics (TM1)

    WaitForAnyJobs instructs a main process to wait for any processes that have been asynchronously executed to complete before continuing the main process.

    In the video, WaitForAnyJobs is used to wait for one of the two processes to complete before continuing to the next line.

    Where can the WaitForAnyJobs function be used?

    TurboIntegrator

      Which TM1 Server version is the WaitForAnyJobs function available for?

      Version 12

        What is the syntax for WaitForAnyJobs?

        WaitForAnyJobs(ID1, ID2, etc.)

        • ID1, ID2, etc.: The job ID of each asynchronous process

        Relevant Functions

        • CancelJobs: cancel asynchronous processes that were launched by the RunProcess function and are blocked due to certain conditions. Any pending changes in a job cancelled with CancelJobs are rolled back.
        • GetJobStatus: return the status for a specified process.
        • WaitforAllJobs: instructs the main process to wait for all specified asynchronously executed processes to complete before continuing the main process.
        • WaitForAnyJobs: instruct a main process to wait for any specified asynchronously executed processes to complete before continuing the main process.
        • WaitForInternalJobs: wait for all asynchronous jobs that are directly launched by the current process to complete before continuing the current process.