Is it Possible to Run Reporting Agent job in Parallel?

Hi Folks,
          I am sceduling a reporting agetn job and I see that it only takes one back Ground process and its a long running Job, so I was thinking about the possibilty of breaking this into parallel jobs..Is this possible if so please share with me how to do this...thanks in advance

Farhan,
       I think I did not explain my question properly, I do not want to create 2 variants with different time selections and run it as 2 jobs, this way I cannot have a Super Set for using Cache, what I am want is use just one variant (Jan through Dec) and when I execute this in the background, i want this job to split into parallel processes so that it runs faster...Can someone explain if this is possible. if so how can i achieve this..thanks in Advance..

Similar Messages

  • Running SQL agent jobs in parallel

    I have around 60 SQL agent jobs (each job has 1 step that loads data from ORACLE to SQL using attunity) that run SSIS packages that I need to run in parallel.  I did some testing and found that the server can handle 10 of them running at the same time.
     I know I need to loop through sysjobhistory and find the ones (all 60 jobs start with PS) that haven't ran today, currently not running and the first tow words of the name = 'PS'.  Any advice on how to get this accomplished would be appreciated.
    I have seen some articles that mention adding 10 data flows to a SSIS package and run them that way but I would like for SQL to handle it, so I can get the time.
    Thanks!

    That will definitely help identify the jobs but I need to figure the looping logic that will allow 10 jobs to run in parallel.
    try this.. not tested.. left comments where possible for you to understand..may need to tweak it a bit..
    declare @a intset @a=0
    declare @jobname nvarchar(200)
    -- checks if there are already 10 jobs running
    while (@a <10) and ((Select count(C.Name) as [JobName]
    from (Select max(Session_id) as Session_Id from msdb.dbo.syssessions) A
    INNER JOIN msdb.dbo.sysjobactivity B on A.Session_id=B.Session_ID
    INNER JOIN msdb.dbo.sysjobs C on B.job_id=C.Job_ID
    where B.stop_execution_date is null AND B.run_requested_date is not null and C.Name like 'PS%') < 10)
    begin
    --loops through to fetch one non-running job at a time and fetches upto 10 jobs
    Select top 1 @jobName = name
    from msdb.dbo.sysjobs X
    INNER JOIN msdb.dbo.sysjobactivity Z on Z.job_id=X.Job_ID
    where name like 'PS%' and
    --checks the job is currently not running
    name not in (
    Select C.Name as [JobName]
    from (Select max(Session_id) as Session_Id from msdb.dbo.syssessions) A
    INNER JOIN msdb.dbo.sysjobactivity B on A.Session_id=B.Session_ID
    INNER JOIN msdb.dbo.sysjobs C on B.job_id=C.Job_ID
    where B.stop_execution_date is null AND B.run_requested_date is not null)
    --makes sure the job already did not run today
    and cast(Z.run_requested_date as date)<>cast(getdate() as date)
    order by name
    Execute msdb.dbo.sp_start_job @job_Name=@jobName
    set @a=@a+1
    End
    Hope it Helps!!

  • Reporting Agent Job Scheduling problem

    hi All,
    I am trying to schedule reporting agent job. I have few pre calculated webtemplates in one reporting agent scheduling package. when i try to schedule it and go to "start condition" - I want to put "After Event". I am selecting Event and giving the parameter name. But when i save and go out the job is already scheduled (checked in sm37). so I tried to chk the job condition again and the event i selected is not there !!!!
    I want to create after even condition and schedule that parameter via mainframe as our all job schedule through main frame only !!! can some one tell me why its not working with reporting agent ??
    I will definately assign the points.

    dinesh and SB,
    thank you for your reply. understood your point. but what i m asking is when i put "after event" criteria in the start selection... wouldnt it show that always when ever i go to Reporting Agent scheduling Package --> right click --> schedule --> start condition (i meant the event name and parameter should be saved there)
    but once i save it and get out from the scheduling package i can see the job has been scheduled but its not showing that its even controlled job !!!
    is it possible to use "after event" option in Reproting agent's job ?
    I have few queries under one Reporting Agent scheduling package which is added in one process chain - the PC is running once a month - i added RA at the end of the process chain and the variant will be schedule by mainframe once the process chain has completed successfully. now 2nd thing is: i need to run Reporting Agent job every single day. so need to schedule it twice. we schedule everything by main frame. so if i can save "after event" criteria then i can schedule that parameter by mainframe. the problem is the start condition is not saving my after event condition entries or parameter names.
    I hope i m clear. pl. guide its kind a urgent.

  • Is there a way to get long running SQL Agent jobs information using powershell?

    Hi All,
    Is there a way to get long running SQL Agent jobs information using powershell for multiple SQL servers in the environment?
    Thanks in Advance.
    --Hunt

    I'm running SQL's to fetch the required details and store it in centralized table. 
    foreach ($svr in get-content "f:\PowerSQL\Input\LongRunningJobsPowerSQLServers.txt"){
    $dt = new-object "System.Data.DataTable"
    $cn = new-object System.Data.SqlClient.SqlConnection "server=$svr;database=master;Integrated Security=sspi"
    $cn.Open()
    $sql = $cn.CreateCommand()
    $sql.CommandText = "SELECT
    @@SERVERNAME servername,
    j.job_id AS 'JobId',
    name AS 'JobName',
    max(start_execution_date) AS 'StartTime',
    max(stop_execution_date)AS 'StopTime',
    max(avgruntimeonsucceed),
    max(DATEDIFF(s,start_execution_date,GETDATE())) AS 'CurrentRunTime',
    max(CASE WHEN stop_execution_date IS NULL THEN
    DATEDIFF(ss,start_execution_date,stop_execution_date) ELSE 0 END) 'ActualRunTime',
    max(CASE
    WHEN stop_execution_date IS NULL THEN 'JobRunning'
    WHEN DATEDIFF(ss,start_execution_date,stop_execution_date)
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-History'
    ELSE 'NormalRunning-History'
    END) 'JobRun',
    max(CASE
    WHEN stop_execution_date IS NULL THEN
    CASE WHEN DATEDIFF(ss,start_execution_date,GETDATE())
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-NOW'
    ELSE 'NormalRunning-NOW'
    END
    ELSE 'JobAlreadyDone'
    END)AS 'JobRunning'
    FROM msdb.dbo.sysjobactivity ja
    INNER JOIN msdb.dbo.sysjobs j ON ja.job_id = j.job_id
    INNER JOIN (
    SELECT job_id,
    AVG
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100)
    +
    STDEV
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100) AS 'AvgRuntimeOnSucceed'
    FROM msdb.dbo.sysjobhistory
    WHERE step_id = 0 AND run_status = 1
    GROUP BY job_id) art
    ON j.job_id = art.job_id
    WHERE
    (stop_execution_date IS NULL and start_execution_date is NOT NULL) OR
    (DATEDIFF(ss,start_execution_date,stop_execution_date) > 60 and DATEDIFF(MINUTE,start_execution_date,GETDATE())>60
    AND
    CAST(LEFT(start_execution_date,11) AS DATETIME) = CAST(LEFT(GETDATE(),11) AS DATETIME) )
    --ORDER BY start_execution_date DESC
    group by j.job_id,name
    $rdr = $sql.ExecuteReader()
    $dt.Load($rdr)
    $cn.Close()
    $dt|out-Datatable
    Write-DataTable -ServerInstance 'test124' -Database "PowerSQL" -TableName "TLOG_JobLongRunning" -Data $dt}
    You can refer the below link to refer out-datatable and write-dataTable function.
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/11/01/use-powershell-to-collect-server-data-and-write-to-sql.aspx
    Once we've the table details, I'm sending one consolidated email to automatically.
    --Prashanth

  • Reporting Agent job failed

    Hi Experts,
    A job whcih starts with RA******...  is assumed as reporting agent job, this job was seen as canceled in SM37.
    what the steps we can take to analyse and correct this job.
    please reply very urgent.
    thanks in advance
    Sunil.

    Check the job log, it would give you a better picture...
    If you can't extract much information from the job, you could probably do a copy of this job in SM37 & try executing it.

  • It is possible to run a timer job in Office 365 online?

    Hi All,
    Is it possible to run a timer job on 1st of every month  for a list in office 365? I have a requirement that I need to send data of current month via email on 1st of every month. should I use timer job in Office 365?
    Thanks in Advance.

    Hi Darsh,
    There is no option available to run a timer job in SharePoint Online (Office 365), SharePoint timer job option is available only in SharePoint On-premise.
    Microsoft Office 365 provide an alternate of the SharePoint timer Job "Web Jobs" on Azure. You can create Web Job by 2 types
    Web Job as a App on SharePoint
    Web Job as a scheduler
    Read the below articles 
    http://blogs.msdn.com/b/kaevans/archive/2014/03/02/building-a-sharepoint-app-as-a-timer-job.aspx
    http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2014/04/07/sharepoint-timer-jobs-running-as-windows-azure-web-jobs.aspx
    Vivek Jagga 
    My Blog

  • Reporting Agent job getting cancelled

    Hi all,
    Jobs scheduled using Reporting Agent to load data into cache memory is getting cancelled with the below mentioned message in the job log.
    System error in program SAPLRRK0 and form SX_TO_BDATA_ELSE-02- (see long text)
    What could the possible reason ? Please help.
    Regards,
    Surjit P

    Hi Amit,
    Tried it. But dint work.
    Regards,
    Surjit

  • Errors running SQL Agent Jobs for 64 bit SSIS packages on a 64 bit server, but Source server 32 bit

    Hi,
    I can able ran the SSIS package in BIDS, since set to false in Run64BitRuntime property.
    Then I created SQL server Agent job I tried the following ways
    Step 1:
    Type is set as SQL Server Integration Services Packages,
    Run as - SQL Server Agent Service Account
    Package source - FileSystem
    then Execution option tab I selected 32 bit runtime
    and then run the job I am getting the below error
    Message
    Executed as user: CIT\svc_CS_SS2008Agent. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  7:29:17 AM  Error: 2013-11-28
    07:29:18.57     Code: 0xC0014020     Source: Example Connection manager "DataSource.DataExtract"     Description: An ODBC error -1 has occurred.  End Error  Error: 2013-11-28 07:29:18.57    
    Code: 0xC0014009     Source: Imports20_OAC_Gifts Connection manager "DataSource.DataExtract"     Description: There was an error trying to establish an Open Database Connectivity (ODBC) connection with the
    database server.  End Error  Error: 2013-11-28 07:29:18.59     Code: 0x0000020F     Source: DFT_Example ODBC_SRC Example [11]     Description: The AcquireConnection method call to the connection
    manager DataSource.DataExtract failed with error code 0xC0014009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2013-11-28 07:29:18.59    
    Code: 0xC0047017     Source: DFT_Example SSIS.Pipeline     Description: ODBC_SRC Example failed validation and returned error code 0x80004005.  End Error  Error: 2013-11-2
    Step 2:
    Type - Operating sytem (CmdExec)
    Run as - Sql Server agent service account
    Command - C:\Program Files\Microsoft SQL Server\110\DTS\Binn\dtexec.exe /FILE "D:\Example\Example.dtsx" /x86  /CHECKPOINTING OFF /REPORTING E
    then run the job I am getting the below error
    Message
    Executed as user: MIS\svc_CS_SS2008Agent. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  6:37:58 AM  Error: 2013-11-28
    06:37:58.94     Code: 0xC0014020     Source: Example Connection manager "DataSource.DataExtract"     Description: An ODBC error -1 has occurred.  End Error  Error: 2013-11-28 06:37:58.96    
    Code: 0xC0014009     Source: Example Connection manager "DataSource.DataExtract"     Description: There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server. 
    End Error  Error: 2013-11-28 06:37:59.01     Code: 0x0000020F     Source: DFT_Example ODBC_SRC Example [11]     Description: The AcquireConnection method call to the connection manager DataSource.DataExtract
    failed with error code 0xC0014009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2013-11-28 06:37:59.07     Code: 0xC0047017    
    Source: DFT_Example SSIS.Pipeline     Description: ODBC_SRC Example failed validation and returned error code 0x80004005.  End Error  Error: 2013-11-28 06:37:59.12     Code: 0xC004700C    
    Source: DFT_Example SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2013-11-28 06:37:59.16     Code: 0xC0024107     Source: DFT_Example     
    Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).Started:  6:37:58 AM  Finished: 6:37:59 AM  Elapsed:  1.373 seconds.  Process Exit Code 1. 
    The step failed.
    Note:
    My source server is 32 bit and development environment in 64 bit
    if anybody have idea please share your knowledge

    Hi BIRam,
    Based on the current information, the issue may be caused by the factor that the SQL Server Agent Service Account doesn’t have access to the MySQL server. Try to create a SQL Server Agent Proxy account that has sufficient permission on the MySQL server.
    In addition, also pay attention to the package protection level setting.
    For more information, please see:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/e13c137c-1535-4475-8c2f-c7e6e7d125fc/how-do-i-troubleshoot-ssis-packages-failed-execution-in-a-sql-agent-job?forum=sqlintegrationservices.   
    Regards,
    Mike Yin
    TechNet Community Support

  • Run SQL Agent Job in endless loop(When it's done, start over again)

    Hi All,
    There is an SQL Agent Job containing a complex Integration Services Package performing some ETL Jobs. It takes between 1 and 4 hours to run, depending on our data sources. The Job currently runs daily, without problems. What I would like to do now is to
    let it run in an endless loop, which means: When it's done, start over again.
    The scheduler doesn't seem to provide this option. I found that it would be possible to use the steps interface to go to step one after the last step is finished, but there's a problem using that method: If I need to stop the job, I would need to do that in
    a forceful way. However I would like to be able to let the job stop after the next iteration. How can I do that?
    Thanks in Advance...

    Seriously I cant think of a reason for continuosly running a step like this
    Do you mean you need to keep on polling db for something continuosly ?
    If thats the requirement there's no need of continuosly calling the step
    Instead of that you can include a loop with wait logic to keep on checking for your condition until it satisfies. You can WAITFOR clause for that
    see an example here where I've implemented similar logic in SSIS
    http://visakhm.blogspot.in/2011/12/simulating-file-watcher-task-in-ssis.html
    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

  • How to schedule reporting agent job?

    Hi,
    I have start a reporting agent pack after changing the
    variant. Now i have changed the variant.
    Then how to schedule the reporting agent pack?
    could any one help me out....
    Thanks
    Srinivas

    Hi,
    Check this.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/67bd3cad649f5ce10000000a114084/content.htm
    Regards.

  • Script to stop running SQL Agent job without passing job name as a parameter

    Looking for script to stop running job and don’t want to pass job name as a parameter, any job which is in running state I want that to be stop/disable.
    I have script to disable all jobs however if any jobs are in running state my requirement is to stop that job immediately and gets disable.
    Rahul

    Try the below scripts and then apply script to disable all jobs.
    execute xp_cmdshell 'net stop sqlserveragent'
    execute xp_cmdshell 'net start sqlserveragent'
    Regards, RSingh

  • Is it possible to run presenter on Mac via Parallels?

    And, record events and activitiy on Mac software screens ( I have all of my Adobe and office software on the Mac and wonder if I want to show something on the Office for Mac could I capture it using presenter on that Mac under Parallels (or boot camp)?
    cheers,
    Fred

    Hi Fred,
    Presenter will work fine in Mac Bootcamp(Windows in Mac), but if your goal is screen/webcam capture, you can try Presenter Video Express which is video capture tool for Mac -> http://blogs.adobe.com/presenter/2013/05/adobe-presenter-video-express-for-mac-now-availab le-on-the-apple-mac-app-store.html
    Thanks,
    Vikram
    Adobe Presenter Engg. Team

  • Error in Reportin Agent job shedule.

    HI All,
    When i try to run Reporting Agent job i can see below  error message.
    Job started
    Step 001 started (program RSRA_JOB, variant , user ID K237830)
    Start package Q_RECON_SP_AUTO_4000_10
    - Start setting Q_RECON_RA_AUTO_4000_10 with variant CC4000_10
    No appropriate entry found in table ADRT
    Job cancelled after system exception ERROR_MESSAGE
    Please provide me some information about the error and how to maintain the table ADRT with required inputs,
    Regards,
    Siva .
    Edited by: Siv Kishore on Jun 3, 2010 4:15 PM

    Hi Vikram,
    Thanks for quick update.
    Just i am reading your document on Bex broadcaster and getting some IDEA.
    We need to sent Automatic mails top the users when the exeptions accurer in the report.
    We are in BW 3.5 flow ( tecchnically upgraded to BI 7.0 but not functionally)
    Could yopu please provide the necessary info to send the mails using BW 3.5 flow.
    And how can i use Bex Broadcaster in BW 3.5 flow??
    Regards,
    Siva..
    Edited by: Siv Kishore on Jun 4, 2010 6:47 AM

  • Reporting AGent problem need help immediately

    I have schedule a job everyday for reporting agent. Which includes 6 reports init with precalculated webtemplate. The reason to use this is that everyday morning the job will run before users use those reports and it will add that in cache so even if users run that reports first time it will be faster in performance.
    Once the job is done i can see those entries in cache memory. But when I run the report its not using cache. it takes forever to execute for the first time. after running the report on web i checked the cache entries and i saw strange thing that when i run the report for the first time its replaces the previous entry of that report from cache with the current one. (eg. Reporting Agent job was finished at 4:00am in the morning - i could see the queries in cache memory with my id and time stamp 4:00am. But when i run the report at 7:00am it takes longer time and after running the report if i check cache entry for that perticular report i dont see 4:00am entry instead of that i see 7:00am entry)
    Can some one tell me why its acting weird ??
    FYI: When i created reporting agent setting  there are 4 options (checkbox) under calculate section:
    1. Data
    2. HTML for Web Browser
    3. HTML for Pocket IE
    4. Excel
    in above options i just selected "Data" - will it might be the reason when i run the query on web its not using cache for the first time ??
    Message was edited by:
            Keral Smith

    Also check the SAP Note <a href="https://websmp110.sap-ag.de/form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=0000751402&nlang=E">751402</a> and the SAP Note <a href="https://websmp110.sap-ag.de/form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=962651&_NLANG=E">962651</a>.
    <b>Symptom</b>
    The reusability of the cache is poor when the "Not changeable during query navigation" variable setting is set. A preliminary calculation is not useful in this case.
    <b>Other terms</b>
    OLAP, cache, cache key, cache entries, reusability, reusage
    preliminary calculation, variable not changeable during query navigation
    <b>Reason and Prerequisites</b>
    The various entries for each variable setting have different keys for "Not changeable during query navigation".
    <b>Solution</b>
    The key for queries in the OLAP cache comprises the following: "query", "variables not changeable during navigation" and "selection hierarchies".
    To reuse cache entries, the cache always returns complete value sets that have already been precalculated and stored or subsets of these value sets. For reusage, the cache can only find subsets of value sets that have already been precalculated and stored if the key for the subset is a subset of the key for the value set that has already been calculated.
    If the setting for query variables is set to "Not changeable during query navigation", a separate cache entry is created at the "Variables/hierarchies" cache level for each query selection. To enable this reusage, you must select exactly the same variable selection, since this results in the relevant key. In this case, a similarity check was performed in the cache for a query at variable level. In practice, a preliminary calculation is executed with the "*" variable selection. Usually, a user will choose another variable selection to be output. When you set the variables to "Not changeable during query navigation", you cannot reuse the precalculated value since the key does not correspond.
    If the "Changeable during query navigation" variable setting is selected for a query, the variables are no longer part of the "Hierarchy/Variable" key, but rather the selection conditions (which are one cache hierarchy level lower). Therefore, the same "Hierarchy/variable" subtree for the query is selected for each variable selection (if the entry has already been calculated and stored) and checked to see whether the value set (or a subset) is considered to be a resulting set. If a value set with "*" was now selected with the preliminary calculation, this could be reused by selecting and returning the relevant value set for the subselection.
    For increased reusability, the variable setting should be set to "Changeable during query navigation" and the preliminary calculation should take place with "*".
    However, you should note that the preliminary calculation must have selected actual supersets. The OLAP processor only examines subset relationships in the cache. The system does not search and "merge" several different cache entries to determine the results of a query (therefore a multi-dimensional approach is not possible either).

  • Is it possible to send report results as an email attachment in BW3.x ?

    Hi Friends,
    I have a requirement wherein I need to automate the process to run the report via Reporting Agent..and also to send the results as an e-mail attachment.
    Is it possible to do so in BW 3.x..?
    I was trying to see if I can run the report using the Reporting Agent Settings, using the Web Templates tab. However I did not see any follo-up actions available for Web templates, but found so for the Exceptions.
    Can you please help and let us know if there is a way to do that and what options are available..?
    Thank You
    Sri lz70d7

    3.1 version.
    try to follwong links
    loginto rsa1
    u will see tab of REPORTING AGENT, press that tab.
    u need to schedule the jobs as u schedule process chains,
    select ur query, make the time arrangement, select output format,
    output type i.e.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/67bd3cad649f5ce10000000a114084/content.htm
    Reporting Agent Configuration
    After the two steps configuration
    1 - configure the agent settings for web templates
    2 - scheduling package which is a reporting agent scheduler
    In RSRAJ Starts a Reporting Agent Job
    SAP show-mw the folow information...
    All Reporting Agent settings processed
    My Questions is ---Where the system save the query data ????
    In RSRAM Reporting Agent Monitor in Schedule --> Execution Target --> i have information of aplcation Server.

Maybe you are looking for

  • Tax not calculating in MIRO within a date range.

    Hi Experts , We have created a tax code and assign its values in condition types under two separate Key Combination. 1) Tax Classification : 4% ( Non Validity) , in access sequence exclusive indicator is set aganst it. 2)  Tax Code : 4% (Valdity - Se

  • While doing a senario from R/3 -xi-oracle

    Hi Everyone, THanks for helping in past i have a new question now while i am doing a senario R/3xiOracle. where should do i need to fit the fault message if something goes wrong in xi its need to disaplay an error message like Fault message and Excep

  • Master Data - Material type

    Hi people! Do you know with there is some way to change de Material type of the "master data material"  without create a new one? Thanks a lot, Rosana.

  • Strange crash after exporting PDF...

    I have a script with the following at the end: var pathName = "~/Desktop/salesChartEMC.pdf"; var saveName = new File (pathName); saveOpts = new PDFSaveOptions(); saveOpts.compatibility = PDFCompatibility.ACROBAT5; saveOpts.generateThumbnails = true;

  • Adobe Flash CS4 Font Problem

    Hi I am currently designing a banner in Flash CS4 for a website with falling snow animation etc. However, when I export it the text is not showing as the correct font. I have tried embedding the font but this still doesn't seem to be working. This is