I want to run a package link using a macro code .

If there is a package RUN_CALC under package group COMPANY1 . Then I use the following macro code to run the package :
Dim EPM As New FPMXLClient.EPMAddInAutomation
Sub RUN()
EPM.DataManagerRunPackage "RUN_CALC", "COMPANY1", ""
End Sub
There is another set of calculations that is run through package RUN_CALC2 . Now I  have linked the two packages : RUN_CALC1 and RUN_CALC2.
Now I not getting any suitable macro code to run this package link . Please suggest the code .
Thanks,
SHUBHAM

Hi Shubham,
1)     Create Package link.
2)     Set your prompts.
3)     Run  your package link using Data Manager-->Run Package-->Run Package link
To run package link through VBA you need unique name of package ID.
4)     After running package link go to SE16 select table name UJD_LINK_LOG.
5)     Then system will generate one entry in table UJD_LINK_LOG.
6)     Copy Unique ID of that package.
7)     Use that Package ID in the VBA Code.
Regards,
Sushant

Similar Messages

  • I want to run SSIS package every time based on last time job processed data time.........

    Hi all,
    i have SSIS package ..its needs run every day .for that we were schedule a job for ssis..
    but we need when package going to run that time we have to take data, besed on last time processed date..for that am using msdb data base to get process date ..but am not yet schedule a job am going to do 1st time..
    insde the package am using this query using execte sql task 
    SELECT     CASE WHEN DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) = 0 THEN 30 ELSE DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) END   AS Dates
    FROM            dbo.sysjobhistory AS H INNER JOIN
                             dbo.sysjobs AS J ON H.job_id = J.job_id
    WHERE        (H.run_status = 1) ..
    if job already ran means its was working fine.if job not yet scheduled means its giving error...
    pandiyan

    Try this one on:
    SELECT COALESCE(dates,fallBack) AS dates, name
    FROM (
    SELECT 30 AS fallBack
    ) b
    LEFT OUTER JOIN (
    SELECT CASE WHEN DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) = 0 THEN 30
    ELSE DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate())
    END AS Dates,
    j.name
    FROM dbo.sysjobhistory AS H
    INNER JOIN dbo.sysjobs AS J
    ON H.job_id = J.job_id
    WHERE H.run_status = 1
    GROUP by j.name
    ) a
    ON b.fallBack = b.fallBack
    You might want to consider filtering on j.name or j.job_id to get the info for the specific job.

  • I want to run a stepper motor using FPGA card 7851r with 9474 driver C rio 9151 is it possible or can i do in LABVIEW CVI

    Hello i want to run Stepper with 7851 R FPGA card with 9474 driver of crio chasis but i am not able to understand how to proceed .Or can opt this option by using lab view CVI
    Solved!
    Go to Solution.

    Hi SHV,
    actually I don't know in which context you want to use your existing hardware for your stepper motor.
    1. The hardware, which you describe, is/was used for which application? ( data acquisition, controlling a system, etc)?
    2. Did you buy the hardware especially for the motor application?
    3. You don't know how which signals are required for your stepper motor.
    Here are some basics from NI about motor control
    Fundamentals of Motion Control
    http://www.ni.com/white-paper/3367/en
    NI Motion Control Technical Library
    http://www.ni.com/white-paper/3054/en
    4. Why do you get the idea the digital output module 9474 is suitable for the stepper motor?
    I would recommend to talk directly to the customer support, so we can figure out in detail your aims about
    the application. Contact your local NI office or request
    a service request on following website:
    Service Request Manager
    https://sine.ni.com/srm/app/login/p/tab/getassistance
    Kind regards,
    RupiDo

  • How to Create Symbolic link using pure Java code?

    Hi,
    I would appreciate if someone can tell me how to create symbolic link using JAVA API. I have looked into many forums but couldn't get a better answer.

    Java is likely not the tool to use here, as symlinks are not present in Windows while "pure" Java attempts to be platform independent. You could use Runtime.exec to execute the ln -s command
    http://forum.java.sun.com/thread.jspa?threadID=664475&messageID=3892685
    Good Luck
    Lee

  • Db links used in generated code

    I am using OWB 9.0.4. I want to use an existing database link for my data extract called POS_LK4 which is what I called my connector when I set it up in my location.
    Whe I generate the code from deployment manager I get the following FROM clause:
    FROM "POS"."NAT_PRODUCT_XREF"@"POST.ATL.BLUECROSS.CA"@"POS_LK4" "NAT_PRODUCT_XREF_POS_LK4" ;
    I assume it used the service name I used to register the remote location to get the middle part POST.ATL.BLUECROSS.CA. I do not want this as part of my database link name, I want it to generate the following FROM clause:
    FROM "POS"."NAT_PRODUCT_XREF"@"POS_LK4" "NAT_PRODUCT_XREF_POS_LK4" ;
    Does anyone have any suggestions?
    Thanks,
    Shelley

    Shelly,
    With the concept of locations and connectors we envision that you actually do regenerate the code. Why? Perhaps in a development environment, you have local sources; in production, there are remote sources. With the concept of locations and connectors we enable multi deployment into these environments, each with the most optimal code for the specific environment, without the requirement to change any of the design.
    If it comes down to mass deployment, you will have to go through the deployment API regardless (also if you save the deployment specification). You can do this through the scripting interface in order to speed up things. However, generation and deployment can be done like this also...
    Is your development environment physically exactly the same as your production environment?
    Thanks,
    Mark.

  • Hello I wanted to know if you can use a single code of a card itunes for two iphone  thank you

    I had trouble inserting the card code on itunes and I can not even download WhatsApp I have tried both with paypal that dell'itunes card with the code that I have used with another iphone anyone know how I can fix it?

    Not sure from your post what your problem is. If you've successfully redeemed a gift card onto your account then it's balance should be accessible from wherever you use your account - so if you have your account on 2 iPhones then you should be able to spend the balance from either as well as from your computer's iTunes.

  • Running abap programs using the macros

    In our DP implementation we have faced several issues in the extraction of the data from the demand planning to one of the legacy system. We have written the ABAP program and would be using the read planning book bapi. I wanted to run the ABAP program using the macro could some one please let me know what is the structure of the macro builder that is used to fire the ABAP program. this is being fired from the macros as some comparison is to be done to run the macro.

    Hi,
    Some more information on macro function
    REPORT_SUBMIT()
    REPORT_SUBMIT( 'program_name' ;  <'job_name'> ; <'job_number'>; <'newmode'>) causes the specified program to be executed. Use the optional arguments, job name and job number, if you wish the program to run in the background. If you set the argument 'newmode', the results are displayed in a new window.
    Hope this will helps you.
    Regards,
    Sunitha.

  • Problem Running SSIS Package with a SQL Server Agent

    SQL Server: SQL Server 2012
    VS: Visual Studio 2012
    Hello,
          I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
    Store) instance on my SQL Server and tried to create a job that would run them from there.
          At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
    use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
    The connection manager "TestFile" is an incorrect type.  The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2]     Description:
    Cannot open the datafile "O:\*****\Success.txt"
    I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers  in this test project one for grabbing the source file and one for
    creating the new test file.
    I am not sure what to do.
    Thanks in advance,
    Matt

    I accidently created two posts. The newest one has the details.
    I did not mean to.
    SQL Server: SQL Server 2012
    VS: Visual Studio 2012
    Hello,
          I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
    Store) instance on my SQL Server and tried to create a job that would run them from there.
          At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
    use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
    The connection manager "TestFile" is an incorrect type.  The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2]     Description:
    Cannot open the datafile "O:\*****\Success.txt"
    I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers  in this test project one for grabbing the source file and one for
    creating the new test file.
    I am not sure what to do.
    Thanks in advance,
    Matt

  • SQL Server Version running SSIS Package

    I´m trying to run an SSIS 2013 Package in SQL Server 2014 but i keep getting the error "package migration from version 8 to version 6 failed with error".
    So i ckecked the vertion in SQL Server 2014 using a T-SQL query:
    SELECT @@VERSION
    and i got:
    "Microsoft SQL Server 2012 (SP1) - 11.0.3153.0 (X64) Jul 22 2014 15:26:36 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) "
    The response for this query should be SQL Server 2014, right?
    What should i do to alter this?

    I think what you meant was SSIS package created using VS 2013. If yes, it will work only on SSIS 2014 server. What you've there is SQL/SSIS 2012 version as shown by @@VERSION result
    http://blogs.msdn.com/b/analysisservices/archive/2014/04/03/sql-server-data-tools-business-intelligence-for-visual-studio-2013-ssdt-bi.aspx
    SO you should be using SSIS 2014 if you want to deploy the packages
    Otherwise use VS 2010 or 2012 SSIS templates for deploying to 2012 server
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Run SSIS package at scheduled time without running SSIS service

    Hello
    I want to run SSIS Package using SQL Agent job, But for some reason, I am allowed to install SSIS services on the server. Is there any way to run SSIS package without running SSIS service? I tried using DTEXEC.exe command, but it still give an error. "To
    run SSIS package outside SQL server data tools you must install service".
    Thanks in advance

    Hi Swetha,
    The service itself is not doing much (only allows to connect), but to actually execute SSIS packages naturally you have to have the Integration Services installed where you want to run the package. Likewise, if you have SSIS installed elsewhere you can run
    it remotely off the local SQL Agent that connects to a remote package.
    Arthur My Blog

  • Can we run the batch file using simple java application

    Hello sir,
    we want to run the batch file using simple java application. i tried with some example, we run the exe files but not batch file.
    Runtime r = Runtime.getRuntime();
    r.exec("D:\\jboss\\bin\\run.bat");
    My application is server will run when we run the java appliation.
    any suggestion? plz give me the solutions

    yes you can run html file
    WEB.SHOW_DOCUMENT is a built-in that is used in Forms to call URL from a Web Form. It works much like the similar way that a link on an HTML page works and it takes two arguments, one is URL and second one is TARGET, in your case use following.
    WEB.SHOW_DOCUMENT('http://channas.iil.informatics.lk:8890/forms/frmservlet?config=abc.html', '_blank');
    Hope this will work for you
    Abbas

  • Unable to run dtsx package locally when there is a sort task

    Hi all
    I have created a very simple package.
    It has a OLE DB Source, a Sort and a OLE DB Destination.
    When I run it in the Integration Designer in Visual Studio, it works fine.
    But when I like to execute the package in another C# Project, I get this error:
    "To run a SSIS package outside of SQL Server Data Tools you must install Sort of Integration Services or higher."
    When I remove the Sort Task, it works.
    Here is my C# code:
    MyEventListener eventListener = new MyEventListener();
    Microsoft.SqlServer.Dts.Runtime.Package _Package;
    Microsoft.SqlServer.Dts.Runtime.Application _Application;
    Microsoft.SqlServer.Dts.Runtime.DTSExecResult _DTSExecResult;
    _Application = new Microsoft.SqlServer.Dts.Runtime.Application();
    _Package = _Application.LoadPackage(@"...\Package.dtsx", eventListener, true);
    _DTSExecResult = _Package.Execute(null, null, eventListener, null, null);
    System.Windows.Forms.MessageBox.Show(_DTSExecResult.ToString());
    Thanks and best regards
    Frank

    Hi frank,
    Based on the error message, it seems that SSIS is not installed or a lower SSIS version installed on the server on which the C# project was running.
    To run the package outside SSDT, you need right version SSIS installed. The reason why the package runs fine with only Source and Destination components is that such a simple package can be executed by the DTExec utility installed by SQL Server 2012 Data base
    Engine or Client Tools (SQL Server Import and Export Wizard). To run a package that uses other tasks/components outside SSDT/BIDS, the SSIS runtime is also required except the DTExec utility. To obtain the SSIS runtime, we have to install SSIS on the server
    where the package runs.
    Reference:
    http://stackoverflow.com/questions/19989099/getting-error-running-ssis-package-on-non-ssis-server
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • MNU command to execute one package link

    Hi experts,
    My scenario is:
    I need to run a package link thru VBA
    I've tried the following command on a specific cell, because I've not found an specific mnu command to run a LINK.
    EVMNU("MNU_eDATA_SELECTPACKAGE","run DM","BPC_BW_RH,CP_BI_BPC_RH1,Company,System Administration")
    Question:
    1-Do we have an specific mnu command to execute PACKAGE LINK ?
    Thanks and Regards,
    Jadir Mendes

    =EVMNU("MNU_eData_RUNPACKAGELINK ","RUN PACKAGE")
    Parameters are not required only you have to write above code and your package list will display run from the list

  • How to find the package  name  using  request number

    I want to check the   package name  using the request  no   ,
    Plz help me

    Hi
    You can use SE03  for the same. In that
    Object Directory Node --> Change Object Directory Entries of Objects in a Request.
    Dbclick on that and provide chield request and press F8 you will get the object with the package.
    Hope this will Help.
    Regards,
    Hiren Patel

  • How can I use my product code to get the serial code to active my dreamweaver?

    My product contain 22 letters and numbers, it can't feet inside any code thing that I found, and I had already sent a email to let them send back the serial code to me, but it didn't. So I want to ask how can I use my product code to get the serial code so that I can active my dreamweaver?

    I already in downloaded the thing, but I just have a product code, how can I install the product?

Maybe you are looking for