Job Cancelled_FTP subcommand: Local error_ECC6_Oracle10_Solaris10

Hi,
We are facing problem with background job.
Requirement: Program collects various details related to Sales (from various tables) creates one test file and same will be placed in some other Non-SAP application through FTP.
Observation:
While in foreground it is working fine and file geting placed in non-SAP application but in background it is throughing error with job status cancelled as  "FTP subcommand: Local error"
Job log :
Job started
Step 001 started (program <program>, variant <variant>, user ID <user id>)
FTP subcommand: Local error
Job cancelled after system exception ERROR_MESSAGE
Any one encounter this problem???
Thanks in advance. . .
S@PM@N

Hi Ashok,
Thanks for response. . . there is a minor correction for my post ..
In fact it is not working foreground as well. In foreground also we are getting "FTP subcommand: Local error" but manuall ftp is working fine.
We have total 25 Z-programs, otehr programs working fine both in foreground and background.
We are not getting any short dumps or system logs entries.
we r using these function modules to send data to FTP from a program
HTTP_SCRAMBLE
FTP_CONNECT
FTP_R3_TO_SERVER
FTP_DISCONNECT
Regards
S@PM@N

Similar Messages

  • FTP_R3_TO_SERVER gives error  " FTP SubCommand Local Error"

    Hi
    I have an issue with the transfer of data from SAP internal table to FTP server
      I am using the function module FTP_R3_TO_SERVER.
      Using this function module I am able to transfer data only some times.
      Most of the time it gives the error message "FTP SubCommand Local Error" .
    Could someone help me resolve this error.
    Its quite urgent.
    Help to resolve this is much appreciated.
    Regards

    Hi Sharayu,
      Kindly give your mail id I will send the code to your mail id.
    Regards
    Sudheendra

  • "FTP Subcommand: local error' in DMS

    Hi Forum..
    I have a problem with DMS while i'm doing Check in As 'Vault'
    i'm getting an error "FTP Subcommand: local error'
    wat r the settings tht i hav to do to overcum this error.
    i have already checked with reports like
    RSFTP002 & MCDOKVAULT.
    itz wrking fine wit those reports but in DMS its throughing da above error.
    Regards,
    Vijay.
    P.S: Useful info will be awarded with Points

    Hi Vijay,
    Is your system a Unicode system?
    If so the problem can be resolved if you have a unicode version of
    SAPFTP program in your desktop according to note 93042.
    Please follwo the note 93042 and download the latest sapftp.
    Execute sapftp -V on your command prompt. This should show you the ftp
    version stating if it is unicode.
    Best regards,
    Christoph
    P.S.: Please reward points for useful information.

  • May have a job editing a local TV show, advice?

    So i've been editing small projects for a while like short films and such and I may have a job editing a local TV show. Was wondering if anyone has experience with this and can offer up any advice, things to be aware of  and keep in mind I may not be used to, etc.

    Yes, knowing the brand & model camera used, and the codec created, will go a long way toward knowing what you will be able to do
    Your version of Premiere Pro will also have an effect on what/how you do things... CS5 and later is MUCH different than CS4 and earlier in the files it will edit

  • Reading files from local hard disk - Access Local Files Only

    Hi All,
    I have a local flash file published as 'Access Local Files Only', to allow me to read from local filesystem.
    What methods or classes can I use to read text and other files from the user's harddisk.
    This is the first time I am trying to do something like this, all help is grealy appreciated.
    Thanks
    Andy

    Hi, thanks for the responses
    I did some searching and found that the urlloader class is the right one for the job.
    'Access Local Files Only' option is provided for this very purpose I believe.
    If anyone has done something like this and have some sample code it would be awesome
    Cheers
    Andy

  • RAISEERROR not shown in Agent Job Log File Viewer

    I use a RAISEERROR for a critical error in a CATCH. When the Job is run, it does fail but it gives the following message. How do i get my @Note to show in the Log File Viewer? Also, where is the log referenced 'WITH LOG'. I looked at the SQL Server Agent
    Log and did not see anything.
    Message
    Executed as user: NT AUTHORITY\SYSTEM. TCP Provider: The specified network name is no longer available. [SQLSTATE 08S01] (Error 64)  Communication link failure [SQLSTATE 08S01] (Error 64).  The step failed.
    DECLARE @Note VARCHAR(500) = 'RAISEERROR due to Critical error'
    RAISERROR (@Note, 20, 127) WITH LOG

    It says Target Local Server. I scripted out the job and proc and ran them on another SQL Server 2008 R2 and I got the expected results. Maybe the test SQL Server 2008 R2 environment I am using has some quirks (for lack of a more technical term)
    @VERSION on SQL Server where I get the  [SQLSTATE 08S01] (Error 64)
    Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (Intel X86)   Apr  2 2010 15:53:02   Copyright (c) Microsoft Corporation  Standard Edition on Windows NT 5.2 <X86> (Build 3790: Service Pack 2) (Hypervisor)
    @VERSION on SQL Server where I get expected results
    Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (Intel X86)   Apr  2 2010 15:53:02   Copyright (c) Microsoft Corporation  Developer Edition on Windows NT 6.0 <X86> (Build 6002: Service Pack 2) (Hypervisor)
    BELOW are the scripted out job and proc that I have been using to test the RAISERROR 
    -- scripted out job
    USE [msdb]
    GO
    /****** Object: Job [AATEST] Script Date: 12/15/2013 16:15:09 ******/
    IF EXISTS (SELECT job_id FROM msdb.dbo.sysjobs_view WHERE name = N'AATEST')
    EXEC msdb.dbo.sp_delete_job @job_id=N'2dd36995-fde6-491c-b4e2-85e8bdea6411', @delete_unused_schedule=1
    GO
    USE [msdb]
    GO
    /****** Object: Job [AATEST] Script Date: 12/15/2013 16:15:09 ******/
    BEGIN TRANSACTION
    DECLARE @ReturnCode INT
    SELECT @ReturnCode = 0
    /****** Object: JobCategory [[Uncategorized (Local)]]] Script Date: 12/15/2013 16:15:09 ******/
    IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'[Uncategorized (Local)]' AND category_class=1)
    BEGIN
    EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N'JOB', @type=N'LOCAL', @name=N'[Uncategorized (Local)]'
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    END
    DECLARE @jobId BINARY(16)
    EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'AATEST',
    @enabled=1,
    @notify_level_eventlog=0,
    @notify_level_email=0,
    @notify_level_netsend=0,
    @notify_level_page=0,
    @delete_level=0,
    @description=N'No description available.',
    @category_name=N'[Uncategorized (Local)]',
    @owner_login_name=N'FNXXX\eME', @job_id = @jobId OUTPUT
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    /****** Object: Step [STEP1] Script Date: 12/15/2013 16:15:09 ******/
    EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'STEP1',
    @step_id=1,
    @cmdexec_success_code=0,
    @on_success_action=1,
    @on_success_step_id=0,
    @on_fail_action=2,
    @on_fail_step_id=0,
    @retry_attempts=0,
    @retry_interval=0,
    @os_run_priority=0, @subsystem=N'TSQL',
    @command=N'EXEC aap1test',
    @database_name=N'Store01',
    @flags=0
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = N'(local)'
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    COMMIT TRANSACTION
    GOTO EndSave
    QuitWithRollback:
    IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION
    EndSave:
    GO
    -- scripted out proc
    USE [Store01]
    GO
    /****** Object: StoredProcedure [dbo].[aap1test] Script Date: 12/15/2013 16:17:19 ******/
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[aap1test]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[aap1test]
    GO
    USE [Store01]
    GO
    /****** Object: StoredProcedure [dbo].[aap1test] Script Date: 12/15/2013 16:17:19 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE PROCEDURE [dbo].[aap1test]
    AS
    BEGIN
    RAISERROR ('************ i am here', 20, 127) WITH LOG -- bxg
    END
    GO

  • Rsync Copy Job Failure ix4-300d

    I'm trying to run Copy Jobs between two new ix4-300d devices Firmware 4.0.6 I prefer to use SSL and rsync. So far I can't get it to work.
    I  can access the remote ix4, browse directories and upload files. When I set up a Copy Job from my local system (a) I'm not offered rsync as a protocol option in the "From" box, but I can select the directory to copy from using Windows File Sharing. In the "To" box, I select rsync and input username and password and can browse the remote ix4 shares to select the directory I want to copy to. However, when I run the Copy Job, I get the message "Access denied to the secure rsync service at <IP Address>"
    I have tried disabling rsync and using only Windows File Sharing, but that configuration will not let me into the remote ix4. I have also tried disabling SSL being required on external connections and that does not work either. My sense is that rsync is actually working, but I have something set wrong.
    Suggestions?
    Solved!
    Go to Solution.

    Got it solved. I need to add the remote ix4 as a trusted device to my local ix4. Eventually figured out how to do that. Copy Jobs run fine now with rsync.
    We could use better documentation.

  • Create SQL Job with Invoke-Sqlcmd

    I'm trying to run a set of .sql files, i didn't know how to pass a common variable to all, so i've started running the statements directly in ps.  One of these creates a job but i'm running into all of the errors due to the special characters and the
    variables, can someone help?
    $Client = "C0212"
    $Instance = "SQL03\"+$Client
    $sqlscript3 = "
    --NEED TO CHANGE THE LOG LOCATION BELOW
    USE [msdb]
    GO
    /****** Object:  Job [DatabaseBackup - USER_DATABASES - FULL]    Script Date: 11/15/2013 8:40:20 AM ******/
    BEGIN TRANSACTION
    DECLARE @ReturnCode INT
    SELECT @ReturnCode = 0
    /****** Object:  JobCategory [Database Maintenance]    Script Date: 11/15/2013 8:40:20 AM ******/
    IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N''Database Maintenance'' AND category_class=1)
    BEGIN
    EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N''JOB'', @type=N''LOCAL'', @name=N''Database Maintenance''
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    END
    DECLARE @jobId BINARY(16)
    EXEC @ReturnCode =  msdb.dbo.sp_add_job @job_name=N''DatabaseBackup - USER_DATABASES - FULL'', 
    @enabled=1, 
    @notify_level_eventlog=2, 
    @notify_level_email=0, 
    @notify_level_netsend=0, 
    @notify_level_page=0, 
    @delete_level=0, 
    @description=N''Source: http://ola.hallengren.com'', 
    @category_name=N''Database Maintenance'', 
    @owner_login_name=N''sa'', @job_id = @jobId OUTPUT
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    /****** Object:  Step [DatabaseBackup - USER_DATABASES - FULL]    Script Date: 11/15/2013 8:40:20 AM ******/
    EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N''DatabaseBackup - USER_DATABASES - FULL'', 
    @step_id=1, 
    @cmdexec_success_code=0, 
    @on_success_action=1, 
    @on_success_step_id=0, 
    @on_fail_action=2, 
    @on_fail_step_id=0, 
    @retry_attempts=0, 
    @retry_interval=0, 
    @os_run_priority=0, @subsystem=N''CmdExec'', 
    @command=N''sqlcmd -E -S `$(ESCAPE_SQUOTE(SRVR)) -d DBA -Q `"EXECUTE [dbo].[DatabaseBackup] @Databases = ''''USER_DATABASES'''', @Directory = N''''T:\SQLsafe Backups\SQL Native Backup'''', @BackupType = ''''FULL'''',
    @Verify = ''''Y'''', @CleanupTime = 170, @CheckSum = ''''Y'''', @LogToTable = ''''Y''''`" -b'', 
    --NEED TO CHANGE THE LOG LOCATION BELOW
    @output_file_name=N''C:\Program Files\Microsoft SQL Server\MSSQL11.$Client\MSSQL\LOG\DatabaseBackup_`$(ESCAPE_SQUOTE(JOBID))_`$(ESCAPE_SQUOTE(STEPID))_`$(ESCAPE_SQUOTE(STRTDT))_`$(ESCAPE_SQUOTE(STRTTM)).txt'', 
    @flags=0
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N''Saturday 4am'', 
    @enabled=1, 
    @freq_type=8, 
    @freq_interval=64, 
    @freq_subday_type=1, 
    @freq_subday_interval=0, 
    @freq_relative_interval=0, 
    @freq_recurrence_factor=1, 
    @active_start_date=20131109, 
    @active_end_date=99991231, 
    @active_start_time=40000, 
    @active_end_time=235959, 
    @schedule_uid=N''5b3c3fcf-28dc-4f4c-95ce-a624667ee378''
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = N''(local)''
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    COMMIT TRANSACTION
    GOTO EndSave
    QuitWithRollback:
        IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION
    EndSave:
    GO"
    Invoke-Sqlcmd –ServerInstance $Instance –Database msdb –Query $sqlscript3 -QueryTimeout 300

    So, if I try this:
    $Client = "C0212"
    Invoke-Sqlcmd -InputFile "C:\NewInstanceScripts\PSNI -3 - Create Full Backup job for ALL User Databases.sql" -Variable $Client
    and in my .sql file that line that contains the variable looks like this:
    @output_file_name=N'C:\Program Files\Microsoft SQL Server\MSSQL11.`$(Client)\MSSQL\LOG\DatabaseBackup_$(ESCAPE_SQUOTE(JOBID))_$(ESCAPE_SQUOTE(STEPID))_$(ESCAPE_SQUOTE(STRTDT))_$(ESCAPE_SQUOTE(STRTTM)).txt',
    I get the error: 
    Invoke-Sqlcmd : The format used to define the new variable for Invoke-Sqlcmd cmdlet is invalid. Please use the 'var=value' format for defining a new variable.
    If i try like this:
    Set @Client = "C0212"
    Invoke-Sqlcmd -InputFile "C:\NewInstanceScripts\PSNI -3 - Create Full Backup job for ALL User Databases.sql" -Variable @Client
    Line in .sql file like this:
    @output_file_name=N'C:\Program Files\Microsoft SQL Server\MSSQL11.@Client\MSSQL\LOG\DatabaseBackup_$(ESCAPE_SQUOTE(JOBID))_$(ESCAPE_SQUOTE(STEPID))_$(ESCAPE_SQUOTE(STRTDT))_$(ESCAPE_SQUOTE(STRTTM)).txt',
    I get the error: Set-Variable : A positional parameter cannot be found that accepts argument '2'.

  • HOW TO RUN BODS JOB THROUGH UNIX SCRIPT

    Dear Experts
    Please provide me the way how to call a job by a script .
    I have used Export Execution Command as recommended by below links
    http://scn.sap.com/docs/DOC-34648
    http://scn.sap.com/community/data-services/blog/2012/08/22/sap-bods--running-scheduling-bods-jobs-from-linux-command-line-using-third-party-scheduler
    But I am not able to locate .sh  file in unix server .
    This is required to call a job after completion of parent job.
    Thanks
    Anupam

    You can check the status in "SAP Business Objects Data Services management Console", Below are the steps
    Login in SAP Business Objects Data Services management Console
    Click on Batch Job
    Select the local repository
    Then check your Job Execution status from there
    For your second query there are two ways one is do the same activity what you have done in DEV.
    below are the steps
    Login in SAP Business Objects Data Services management Console and export the Jobs using export execution command from batch job
    SHELL Scripts will be exported in Job Server Log
    Move that SHELL script as per your location
    Update the User environment variable same as DEV only difference is SID is changed
    Thanks,
    Daya

  • Oem: import job error

    i get the following message when i import any object in database.
    couldn't open "d:\import.log" : no such file or directory
    please help
    thanks

    Are you running the DataGatherer service?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by rafael:
    if i try to export/import any object of a remote database the job works fine, but if then export/import job is on local database i get the same error. I try to change all parameters and credential, always get the same error.
    if i try to import an object (a table, for example) i get this error.
    "@EXP_USEROLE@"."D"
    "@EXP_USERNAME@"."SYSTEM"
    "@EXP_MODE@"."R"
    "@EXP_TYPE@"."USERS"
    COULDN'T OPEN "D:\ORANT\ORA81\WORK\547125707.LOG" : NO SUCH FILE OR DIRECTORY
    THANKS FOR ALL.
    <HR></BLOCKQUOTE>
    null

  • How do I contact Apple for Job Application status?

    Hi everyone,
    I have applied for a job at Apple locally (Minnesota), A few days later a recruiter emailed me asking for my availability the next couple of weeks for a phone interview.  I replied twice so far, the 2 week span has passed, and I have yet to get a response from the recruiter.  Any idea who I can email/call to get an update? The recruiter only had her email address, no phone number.  I'm very intersted in this position and want to make sure I am still up for consideration.
    Much appreciated,

    Certainly no one here could provide you with any information. Sounds like that recruiter's email is the only option you have. Who did you contact initially to apply?

  • Codec not installed error, using local cluster

    This was working, but now it's not. I have a local cluster that helps me parallize my transcoding jobs. If I send the job to "This Computer" it completes without errors, but it only uses 2 cores (out of 12). If I send the job to my local cluster, it fails with "codec not found". I've tried it with H.264 and ProRes 422 HQ and I get the same error. Obviously, I have the codecs, or the job wouldn't run on "This Computer". Furthermore, the cluster is only running on the same computer.
    I admit, I haven't had a lot of time to re-install and/or reconfigure things to see if the problem will go away. I was wondering if anyone has seen this?
    Since it worked, I have updated Compressor and Motion, and I have installed a trial version of FCPX for evaluation. Otherwise, the computer is less than 2 months old, running OS X 10.7.5.
    Thank you, for any tips you can throw my way.
    Douglas Toltzman

    Hi Doug, don't dispair... Sounds like the Qmaster structure needs a kick. Have you had a look at the logs for any errors relating to Qmaster in /var/logs (via the console.app).. Worth a look. Also the these logs are exposed via the share monitor.app as well..
    Sounds like a state information pointer is corrupt. This is easily fixed
    Also I'm curious how you established the cluster. Is it a "quick cluster", or one you initialised via apple Qmaster admin or is your host just set up for services only and you submitted the batch to "computer plus"? Just curious. 
    In all these setup, it involves our old and sometimes less faithful mate "qmAster" ...
    I'd propose you reinitialise Qmaster by removing its state information objects and cluster storage. Now there is usually no need to remove the compressor prefs unless u have some ui issue with compressor....
    For the former these are many ways to disestablish Qmaster and I have documented on here in the following post. Worth a try.. This procedure usually sets compressor up ok. Additionally there's mention of issuing 3rd party apps to cleanup Qmaster .. They don't help much as they don't hit the current structure me thinks. Save some money and try the following.
    https://discussions.apple.com/message/17356372#17356372
    The least result is that the cluster will be established cleanly and working.
    Submit your batch again and report back. We can continue the troubleshooting from there.
    Any post your results for others to see.
    Hth
    Warwick

  • Regarding Generate New Database Job

    Dear All,
    I have a query regarding Generate New Database job while extracting Local DB to developers.
    I got a request from multiple developers to extract Local DB for them. Do I have to run the Generate Database Job multiple times or is it enought if I run it once and then continue with DB extract Job for all the users?
    Please help me out on this query?
    Regards,
    Abi

    Hi,
    As per oracle documentation -> http://docs.oracle.com/cd/B31104_02/books/RRAdm/RRAdmRM_RemoteConcpts12.html
    "The Generate New Database component creates the local database template for a given database schema version. The component reads the database schema definition from the Siebel repository, then creates Siebel tables and indexes in a database template file stored on the Siebel Remote server in the dbtempl subdirectory."
    Basically after any changes in schema you should run "Generate New Database" job again. That was the reason why I mentioned about generating it again.
    GL

  • Creating local custom calendar type .

    Hi all,
    How to create a custom calendar type .I need to start a job according with local calendar (local holidays)which was not present in SM36.Also Some holiday is not preset in this calendar(cant be predicted in which day it falls ) .I dont want to run the job on thses days as well.

    Hi ,
    Can anybody suggest me a solution as i need a help quickly .?

  • Scheduled job routes to Primary in AG automatically?

    Hello!
    We have a new setup of SQL Server 2014 running 12.0.2430.  We have two servers that are set up in AlwaysOn High Availability, which are hosting a database in an AG with a valid listener. Everything seems fine and is working as expected
    in terms of HA, except for the following:
    We have a scheduled job that was deployed to both servers in the HADRON cluster.  It runs a stored procedure in the db, which creates some temp tables and updates some records.  I was fully expecting that the job would fail on the server that is
    the secondary, however, we have observed that, when we set the secondary to be non-readable, the job will run on both the primary and the secondary, routing the traffic to the primary in both instances.  When we set the secondary to readable, this behavior
    goes away.
    What gives?  Is this expected?
    Thanks in advance for any info you can provide.
    Thanks!
    -Bill S.

    USE [msdb]
    GO
    /****** Object:  Job [test]    Script Date: 3/27/2015 8:42:15 AM ******/
    BEGIN TRANSACTION
    DECLARE @ReturnCode INT
    SELECT @ReturnCode = 0
    /****** Object:  JobCategory [[Uncategorized (Local)]]    Script Date: 3/27/2015 8:42:15 AM ******/
    IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'[Uncategorized (Local)]' AND category_class=1)
    BEGIN
    EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N'JOB', @type=N'LOCAL', @name=N'[Uncategorized (Local)]'
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    END
    DECLARE @jobId BINARY(16)
    EXEC @ReturnCode =  msdb.dbo.sp_add_job @job_name=N'test', 
    @enabled=1, 
    @notify_level_eventlog=0, 
    @notify_level_email=0, 
    @notify_level_netsend=0, 
    @notify_level_page=0, 
    @delete_level=0, 
    @description=N'No description available.', 
    @category_name=N'[Uncategorized (Local)]', 
    @owner_login_name=N'sa', @job_id = @jobId OUTPUT
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    /****** Object:  Step [test job]    Script Date: 3/27/2015 8:42:16 AM ******/
    EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'test job', 
    @step_id=1, 
    @cmdexec_success_code=0, 
    @on_success_action=1, 
    @on_success_step_id=0, 
    @on_fail_action=2, 
    @on_fail_step_id=0, 
    @retry_attempts=0, 
    @retry_interval=0, 
    @os_run_priority=0, @subsystem=N'TSQL', 
    @command=N'SELECT TOP 10 [AlertID]
          ,[UTCOccurrenceDateTime]
          ,[ServerName]
          ,[DatabaseName]
          ,[TableName]
          ,[Active]
          ,[Metric]
          ,[Severity]
          ,[StateEvent]
          ,[Value]
          ,[Heading]
          ,[Message]
          ,[QualifierHash]
          ,[LinkedData]
      FROM [SQLdmRepository].[dbo].[Alerts] 
      WAITFOR DELAY ''00:00:10'' -- THis is the test job
    @database_name=N'SQLdmRepository', 
    @flags=0
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = N'(local)'
    IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
    COMMIT TRANSACTION
    GOTO EndSave
    QuitWithRollback:
        IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION
    EndSave:
    GO

Maybe you are looking for

  • Dynamic Table UI Element with different data type for each cell

    Hi Experts, I have a problem with a dynamic Table UI Element in Web Dynpro ABAP. I have the following coding: METHOD set_col_row .   TYPE-POOLS: icon.   DATA:     lv_node         TYPE REF TO if_wd_context_node,     lv_node_info    TYPE REF TO if_wd_c

  • Very strange index.jsp problem (Apache2 + Jboss/Tomcat)

    I've been working on this for 6 hours until the current time of 4.30 am - any help is very much appreciated. I (thought) I had successfully integrated Jboss/Tomcat with apache 2 using mod_jk 1.2.8 - and added an alias for jmx-console. But I just can'

  • OS 9 not booting after Norton disk fix

    Background -> I am a Mac nub. I am considering switching from pc to Mac at home because I hate windows stability. Question -> I was given a G3 Beige with OS 9.0. Norton utilities software was installed and while running the disk checker (I don't reme

  • File --- XI --- SOAP scenario

    I have a scenario where I would be reading a input file and invoke a Soap adapter and then get back the response and write to another output file. So, i need to configure two asyncronous file adapters(one for inbound and one for outbound) and one syn

  • Patch Set Release 2 (9.2.0.8) Patch Set 7 for Microsoft Windows (32-Bit)

    Hi, I've 2 nodes with version 9.2.0.1 I applied a Patch Set Release 2 (9.2.0.8) Patch Set 7 for Microsoft Windows (32-Bit) on the Node 2, All is fine but when i try to discover N2 from N1 with OMS, i get only the HTTP Servers, and no database discovr