Job Step Status

Hi All,
Is there any FM or table to check the status of each job step??
I mean while my job is executing i want to check the of the job step that has finished execution.
For e.g. If Job A having 3 steps is running.Step 1 has completed execution and Step 2 has started. At this point i want to chck the status of Step 1 and accordingly send mail to people.
How can i achieve this.?
Its Urgent...
Answers will be rewarded.
Regads,
Rohan

Hi Rohan,
The information about back ground jobs are stored in table <b>TBTCO</b>.
field STATUS denotes the status ( A - failed, F - complete , R - active )
The primary key for this table is job name ( including the step  )
Check this table for more details.

Similar Messages

  • Check Job step status

    HI,
       My scenario goes like this :
          I have 3 steps in a background job with 3 diff variants. I want to find out a way
    to find the status of each of my job steps, and after each job step is submitted on knowing its status i want to send a corresponding mail to a few people .
    How do i do this.
    Answers will be rewarded,
    Regards,
    Rohan

    Hi,
    CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount     = w_jobcount
          job_read_jobname      = w_jobname
          job_read_opcode       = '20'
        IMPORTING
          job_read_jobhead      = wa_jobhead
        TABLES
          job_read_steplist     = i_jobsteplist
        EXCEPTIONS
          invalid_opcode        = 1
          job_doesnt_exist      = 2
          job_doesnt_have_steps = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    To Display the status text as per the status type
      CASE wa_jobhead-status.
        WHEN 'S'. WRITE: / text-033. "'Scheduled'.
        WHEN 'R'. WRITE: / text-034. "'Released'.
        WHEN 'F'. WRITE: / text-035. "'Completed'.
        WHEN 'A'. WRITE: / text-036. "'Cancelled'.
        WHEN OTHERS.
      ENDCASE.
    Best regards,
    Prashant

  • Check Status of job step

    Hi,
    i have a job having 3 steps. table TBTCO gives u the status of the 3 steps together -- job as a whole.
    How can i come to know of the status of the job at every step. i mean how will i confirm if at every step the job is executed properly or not.??
    Untill the complete job is executed, the status of each job step is Scheduled.
    Only after complete job excution u can find out the status . either finished or aborted.
    What if i want to know status at each job step?
    Kindly help,its urgent.
    Answers will be rewarded,
    regards,
    Rohan

    Hi,
    Checking  your job status with SM50 (processor type BTC) is more accurate then SM37.  SAP updates the tables TBTCO wheneveryour background jobs status change.  If SAP is shutdown, the currentjobs might not be update ontime to the table. (e.g. a background job wasshown as Active (SM37), in fact it real status should be Cancelled.
    Look at the function module <b>GET_JOB_RUNTIME_INFO</b>
    Regards
    Sudheer

  • Check Status of a job step

    Hi,
    Can anyone tell me how to check the true status of a job step.
    Using tables TBTCP , or FM BP_JOB_READ what i can come to know is the status of a job step to be 'P" ie Scheduled even when the job containing that step has finished succesfully(Status from TBTCO ).
    My Job has 3 steps.
    I want to know the status of my 1st job step and based on the status (either Aborted or Finished) i want it to proceed further n execute the 2nd step.and so on.
    IS any there way out??
    Answers will be rewarded,
    regards,
    Rohan

    Hi,
    Checking  your job status with SM50 (processor type BTC) is more accurate then SM37.  SAP updates the tables TBTCO wheneveryour background jobs status change.  If SAP is shutdown, the currentjobs might not be update ontime to the table. (e.g. a background job wasshown as Active (SM37), in fact it real status should be Cancelled.
    Look at the function module <b>GET_JOB_RUNTIME_INFO</b>
    Regards
    Sudheer

  • Background Job Step

    Hi,
    I have 3 steps in my job. I want to check the status of each job step and if that job step fails , send email to certain people.
    How do i go abt doing abt it??
    In table TBTCP --  it gives the status of each job step as 'P' ie scheduled even for the finished ones... so i cant get correct data from TBTCP.
    Is der any FM implementing the same??
    Its Urgent.
    Answers will be rewarded,
    regards,
    Rohan

    Hi Rohan,
    Instead of creating the stpes, why don't you create the Job after completing the Fisrt job and for the Third Job select after completion of the Second job, so that you will get the Status in TBTCP table from there you can write the code to send the email
    Regards
    Sudheer

  • Process Chain step status

    Hello All,
    In one of our process chain , we have an AND step, where in its checks its 4 preeceding steps, its all 4 are green,the AND Step executes and it goes to the next step.
    Chain is running fine since many years. But yesterday , we faced the issue that even if the preeceding steps were green, the AND step status showed Completed  rather it should show Successfully Completed.
    So we had to manually change the status to Successfully Completed  and it went fine.
    We check with the Basis also, the system was fine during that point.
    Any pointers why the step did not get the Status as Successfully Completed.
    Job name: BI_PROCESS_AND
    Regards,
    Mayank

    Hi,
    You can find the necessary logs & status of the process chains in the RSPCLOGCHAIN table.
    Let's know the status.
    Also check in table RSPCPROCESSLOG
    Let us know the details.
    Reg
    Pra

  • How to terminate the next job step in Background job?

    Hi,
    I have the requirement from the user that want to terminate the next job step in the background job that currently running (Status Active).
    For example, Background Job A, contains 5 job step, once the background is running, we would like Job A not run thru job step 4 and 5, just run up to job step 3. 
    Anyone have any idea how can I do that?
    Thanks
    Nattawat S.

    Hi,
              Try to delete instead of cancel in SM37.
    To cancel and active job, select the job from SM37 and Click on STOP button in application toolbar. You can refer to your other thread for more info.
    Regards

  • RAR Job Scheduler Status

    hi,
    In RAR I have a message in the Job Scheduler which says :
    Job Scheduler Status: unknown error
    therefore jobs are not working...
    thanks for help me
    actual config :
    GRC AC 5.3 SP10
    Edited by: Aurélien GARDE on Jan 21, 2010 3:18 PM

    Hi Aurélien GARDE ,
       I am not very clear about your question, however I am assuming that you are getting the error when running the Background Job , If this is the case  ,please check following
    1)     http://:/sap/CCBgStatus.jsp - it should come up with status u201Crunningu201D
    2) Check Analysis Engine Daemon Manager
    Type URL http://:/sap/CCADStatus.jsp - it should come up with
    status  u201Crunningu201D By default you should see 3 bg job threads and 5 web services threads per server
    Could you please let us know the findings ,If there is blank screen for step 2, then you need to apply note number 999785 , which will resolve your issue.
    Thanks & Regards
    Umashankar T

  • Problem creating job steps variants

    Hi Gurus!
    I have a problem with job steps creation.
    In my program I need to copy the exist job with some condition accords to job steps variants.
    But when I create the new job and it steps and variants in SM37, I can not see the variants names, only number.
    For example in template that I am copying it looks like that:
    No. Program name/command      Prog. type  Spool list   Parameters              User Lang.
    1              RMCVNEUA                  ABAP                        BW_TEMPLATE       aaa     EN
    But in job that I create it is:
    Program name/command      Prog. type   Spool list   Parameters               User  Lang.
    RMCVNEUA                          ABAP                           &0000000000271     ddd     EN
    How can I create steps with variant names instead of numbers/indexes?   BW_TEMPLATE instead of &0000000000271.
    My code:
    CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = lv_jobname
          sdlstrtdt        = lv_date
          sdlstrttm        = lv_time
        IMPORTING
          jobcount         = lv_jobcount
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
    SUBMIT (ps_tbtcp-progname) VIA JOB pv_jobname NUMBER pv_jobcount
                                     USING SELECTION-SET ls_cat-variant
                                     AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount                          = lv_jobcount
          jobname                           = lv_jobname
         direct_start                      = lv_imm_run
       EXCEPTIONS
         cant_start_immediate              = 1
         invalid_startdate                 = 2
         jobname_missing                   = 3
         job_close_failed                  = 4
         job_nosteps                       = 5
         job_notex                         = 6
         lock_failed                       = 7
         invalid_target                    = 8
         OTHERS                            = 9
    Edited by: Dani_K on Oct 27, 2010 4:35 PM

    No any suggestions?

  • Pass value from SQL agent job step

    Hi 
    I have created one SSIS package and I am scheduling the same using SQL Agent job. Now I want to pass one value from SQL job agent and want to use that value in SSIS package and then run that package.  Can someone point to the solution.
    Aniruddha http://aniruddhathengadi.blogspot.com/

    I have created one parameter on SSIS package named strValue and assigned a empty value "". After that I have created one SQL job and step wherein I have set the value to "Nike" for parameter under Parameters tab.
    Now I am expecting Nike value which I have set on SQL job step should get reflected on SSIS package when I am running my job. Am I doing anything wrong ?
    Aniruddha http://aniruddhathengadi.blogspot.com/
    Not sure what's going wrong but you can have quick look at below step by step tutorial:
    Parameterizing Connections and Values at Runtime Using SSIS Environment Variables (via SQL Agent)
    Cheers,
    Vaibhav Chaudhari

  • T code to check the job run status

    Hi Gurus,
    I am filling the setup tables for inventory, but i didn't run in background. I clicked on execute button, but suddenly i got disconnected from net and my server also.
    Now i have to check the job run status whether it is running or not.
    Request you to provide the suggessions.
    Thanks & Regards,
    Saketh

    Hi,
    if you ran job in background you can see at SM37.use proper time ,date and use id to get your job.
    if you ran on frond end then you won't see job.if your job was completed then you can see data at SE11 by using setup table name or you can see at t code NPRT by using name of the run.
    if you won't find your job then just delete your setup tables again and fill it.
    No issues.
    Thanks

  • SQL Server Agent Job Failing on Job Step

    Hi,
    Firstly, apologies if this post has been made in the wrong group.  Running SQL Server 2012.  I'm attempting to add a SQL Server Agent Job which calls a stored procedure that sends a Database Mail message.  The SQL Server and SQL Server Agent
    both run under the NT AUTHORITY\NETWORK SERVICE account.  The Database Mail service has been enabled, and a public profile created.  When running the stored procedure manually, I receive no errors - everything runs as expected and I do receive an
    email containing the expected information.
    I've created the job, job step, job schedule, attached the schedule to the job, and assigned the job to server, all using T-SQL without error.  I've also enabled the mail profile on the SQL Server Agent, and I know that part is working because when
    the job fails, I get an email notification of the failure.
    I've checked the command text in the job step and parsed it within the SQL Job Step Edit window to confirm, it shows as parsing correctly.  However, when I manually run the job itself, I get the following:
    Execution of job failed.  See the history log for details.
    I check the history log and it shows:
    [474] Unable to refresh Database Mail profile Database Mail Profile. (reason: ) (Not a typo, the history log shows no reason)
    [260] Unable to start mail session.
    [396] An idle CPU condition has not been defined - OnIdle job schedules will have no effect
    The command text on the failing job step is as follows:
    DECLARE @date [varchar](10)
    SET @date = CAST(GETDATE() AS [varchar](10))
    EXEC [dbo].[GetExceptions]
    @company = 'MyCompany',
    @checkDate = @date
    With regard to the date value being passed as varchar: This stored procedure is used to check for exceptions against multiple databases on this server (hence the company parameter) via dynamic SQL.  I'd much prefer to use proper data typing but this
    is the only way I could get it to work.
    Does anyone have any suggestions on anything else I could check, or insights into why this is failing?  Any help is greatly appreciated!
    Best Regards
    Brad

    I am not sure if this really helps but I would do follow the below steps:
    1. make sure sql server agent has database mail enabled(rigt click on server agent--properties--alert system--enable database mail and choose right profile.) and RESTART THE SQL SERVER AGENT.(i know you said it i working, but sometimes,  restart the
    sql server agent might fix)
    2. check agent error log and check if any error messages.
    3. run the command text you mentioned in sql server and see if it is working.(i know you said it is working but just to make sure).
    4. make sure sql server agent service user has permissions to run database mail in msdb. check this https://msdn.microsoft.com/en-us/library/ms186358.aspx
    5. Check the output from select * from msdb.dbo.sysmail_log and if it says anything
    6.it does not look like the job log is getting truncated but to make sure, get the job step output to a text file.to do this, edit the job step and on the job step properties click on advanced,  enter path to the output file. this will give the complete
    output for the step.
    Hope it Helps!!

  • "Failed to open package file ..." when modifying job step on remote server

    I have SSIS package setup on a remote SQL Server to run on schedule via SQL Server Agent. It was setup initially by remote desktop-ing to the server and connecting to it via SSMS running on the same machine where SQL Server is running. Package source is
    "File System" and absolute path is specified (D:\Folder1\Package1.dtsx). There is just one step in the job - to run SSIS package. Everything works as it should.
    Now I want to modify this job - change number of retry on failure attempts. I can successfully connect to this SQL Server instance via SSMS from my developer workstation. I can then go to "Advanced Settings" for this job step and change "Retry attempts"
    to some other number. However, when I press "OK" I get this error message:
    TITLE: SSIS Execution Properties
    Failed to open package file "D:\Folder1\Package1.dtsx" due to error 0x80070003 "The system cannot find the path specified.".  This happens when loading a package and the file cannot be opened or loaded correctly into the XML document. This can
    be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.
     ({105912C7-6345-42B4-99B4-58566291867B})
    ADDITIONAL INFORMATION:
    Failed to open package file "D:\Folder1\Package1.dtsx" due to error 0x80070003 "The system cannot find the path specified.".  This happens when loading a package and the file cannot be opened or loaded correctly into the XML document. This can
    be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.
     ({105912C7-6345-42B4-99B4-58566291867B})
    Interestingly enough, in spite of this error message the number of retries is successfully changed.
    I understand it happens because SSMS tries to locate package on my local hard drive and the same folder doesn't exist on my development PC. It still doesn't make sense to me. Does SSMS not know I am accessing remote server? How come I don't get any errors
    when I just execute this job via SSMS when SSMS runs on my development PC?

    Hi, Am facing same issue, but I am trying run SSIS package via C# code, I have given full access to all the folder in which the package is available.
    In the below line am getting error,
    using Microsoft.SqlServer.DTS.Runtime;
    Application app=new Application();
    Package package=null;
    package=app.LoadPackage("PackageFullPath",null) --error line
    Failed to open package file "C:\SSIS\Package.dtsx" due to error 0x800C0006 "The system
    cannot locate the object specified.".  This occurs when loading a
    package and the file cannot be opened or loaded correctly into the XML document
    full access to which account? also trying to run from where? In the same machine where package resides?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • SSIS - Change Config File Path LOCATION in SQL Agent Job Step (NOT USING DTEXEC)

    SSISers;
    I am not new to ssis but am trying to deal with promoting of ssis config files differently for a specific project. We are using SQL 2008 R2.
    As a standared pattern used for years, we just use SQL Agent, build a job step for the ssis package, add the ssis package as SQL Integration Services Package type from fileshare (not using Integration Services), and add the necessary production
    config files in the configutation tab of the job step. Easy.  We do not execute our packages with DTEXEC command line.
    A new project has the developers leaving the config files in the package - not removing the config files for deployment. Is there a way to override JUST THE CONFIG FILE PATH LOCATION in the job step for ssis package? Remember, we are NOT using dtexec. 
    I was told that /SET might do it but I do not see a good example anywhere of hooking this in and how it works for a CONFIG FILE PATH LOCATION - I see variable overrides but not CONFIG FILE PATH LOCATION. The packages were written with Absolute config file
    path and not Relative path.
    Please understand that my goal is to let them leave the packages as is, we move the config files to the production sever and all we have to do is flip the location of where the config files are sitting for the ssis pacakge to look for them.  We would
    rather NOT have to use DTEXEC command  line with the job step for reasons that I do no need to get into on this forum.
    Any suggestions are appreciated.

    Hi mg30,
    There is no way to overwrite the XML configurations file just through modifying the SQL Server Agent job steps.  The Dtexec utility will apply the default package configurations for the second time after applying the options specified in the command
    lines or other package configurations configured in the job step.
    If the package is not deployed/installed, the Dtexec utility looks for the XML configurations file according to the file path defined in the Package Configurations Organizer window. In this situation, you need to either disable the package configurations
    or modify the XML file path in the BIDS.
    If the package is already deployed/installed, you need to modify the package as above or re-specify the install folder for the package configurations file. 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • SQL Agent job step - SSIS package - adding a config file - will it override the one that the package specifies?

    If I setup a job step to run a package and set the config file location on the "Configurations" tab, will that override the config file that the SSIS package is configured to use?  Or is this a "cumulative" type configuration option?
    I typically have my config file mixed in with my project files, but that path wont exist on the server.

    Hi Shiftbit,
    ETL vs ELT is right.
    In SSIS 2005, the DTExec utility loads and runs the package, events occur in the following order:
    The package file is loaded.
    The configurations specified in the package at design time are applied in the order specified in the package (except for Parent Package Variables).
    Any options specified from the command line are applied. Any configurations specified on the command line overwrite the current values; however, they do not trigger a reload of the configurations if a changed value impacts a configuration dependency. For
    example, if the connection string used for SQL Server configurations is updated from the command line at run time, the package will still retain any other values from the design-time SQL Server configuration database.
    Parent Package Variable Configurations are applied.
    The package is run.
    In SSIS 2008 and higher, utility loads and runs the package, events occur in the following order:
    The dtexec utility loads the package.
    The utility applies the configurations that were specified in the package at design time and in the order that is specified in the package. (The one exception to this is the Parent Package Variables configurations. The utility applies these configurations
    only once and later in the process.)
    The utility then applies any options that you specified on the command line.
    The utility then reloads the configurations that were specified in the package at design time and in the order specified in the package. (Again, the exception to this rule is the Parent Package Variables configurations). The utility uses any command-line
    options that were specified to reload the configurations. Therefore, different values might be reloaded from a different location.
    The utility applies the Parent Package Variable configurations.
    The utility runs the package.
    So, we can see that no matter we use SSIS 2005 which applies the Configurations once or use SSIS 2008 (or higher) which applies the configurations twice, the configurations specified in the command line will affect and not be overwritten by the configurations
    specified at design-time.
    Reference:
    http://technet.microsoft.com/en-us/library/ms141682(v=sql.110).aspx.
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • Out of nowhere, I can no longer read files from my timecapsule...

    As of this morning, my Time Capsule, with all of its backups and files (including my iTunes library) can no longer be read from.. It says I have insufficent permission to access the files? The TC is hooked up to my Mini in the downstairs, and the com

  • Can I put all of my families devices under one itunes account

    How do I put all of my families devices under on itunes account?  Will this delete all of the existing music on the devices?  Previously they have been under 2 accounts. Thank you

  • Create Film Roll - greyed out

    I wish to create some Film Rolls, to better organize my photos.... As the title indicates the option under File 'Create Film Roll' is greyed out. As extra info: I have checked that all ticks are set under Library, no entry in the search box bottom ri

  • Edge Animate CC - subscription

    Which subscription plan gives serial to Edge Animate CC? I have subscription for photographers, but I can't find information which plan will give me acces to Edge Animate CC. Please help

  • Servlet Session recording in DB

    how can I record session in DB. plz get me an example