Variable across datapackage

Hi,
How can i put a counter across data package for a ODS load.Well i want to put this counter in my ODS as key field so that data comin from source is always one-to-one mapped.
Kindly let me know options.Though I have few.
Tina,
Thank you.

Tina,
In my system it works properly. After deleting data from the ODS a counter numbering starts from 1.
In the routine for the key field counter in URs I placed the code:
STATICS counter TYPE i VALUE 0.
counter = counter + 1.
result value of the routine
RESULT = counter.
So, check one more time.
Best regards,
Eugene

Similar Messages

  • Substitution Variable across two dimensions

    Hello,
    I was wondering if we could define a single substitution variable across two dimensions. For instance, we have two dimensions Year (FY10,FY11,FY12, etc) and Period (QTR1, JAN, FEB, MAR, QTR2...)
    I understand we can define a range of values in a single subvar such as &period is Jan:Dec.
    However, given the above two dimensions we would like something like this Jan.FY10:Dec.FY13. I know this would be easier if years and months belonged to the same dimension but they are two different dimensions. So, essentially we want to define a single subvar involving two dimensions.
    Please let me know, if this is possible on Essbase 9.
    Thank you.
    Edited by: user10678366 on Sep 15, 2010 9:56 AM

    Thanks for all your responses. As Gary and Srinivas pointed out @XRANGE definitely works with a subvar with a few limitations;
    1. Cannot be used in a FIX statement
    2. For accurate months across different years, the order of the subvar should be FY11->FEB, FY13->DEC and not not FEB->FY11, DEC->FY13 since in my db, the Period dimension is DENSE and appears before the YEARS dimension in the outline.
    3. It works in a IF statement
    However one lingering issue I have is with a @PRIOR statement on conjunction with @XRANGE within my IF statement:
    Note: subvar &RANGE = FY11->FEB, FY13->DEC
    STAT1(
    IF(@ISMBR(@XRANGE(&RANGE)))
    IF(STAT1 = 20)
    STAT1 = @PRIOR(STAT1)
    ENDIF
    ENDIF
    The problem is STAT1 gets calculated accurately for all months for that year. However, all months the following year donot get calculated. So, essentially the BEGBALANCE (also at level 0) doesnt get calculated for the next year. Here an illustration of before and after:
              FY11     FY12     FY13
    Stat1     BegBalance               
         Jan     #MI     #MI     #MI
         Feb     #MI     #MI     #MI
         Mar     #MI     #MI     #MI
         Apr     #MI     #MI     #MI
         May     #MI     #MI     #MI
         Jun     20     #MI     #MI
         Jul     #MI     #MI     #MI
         Aug     #MI     #MI     #MI
         Sep     #MI     #MI     #MI
         Oct     #MI     #MI     #MI
         Nov     #MI     #MI     #MI
         Dec     #MI     #MI     #MI
    Stat1     BegBalance     #MI     #MI     #MI
         Jan     #MI     #MI     #MI
         Feb     #MI     #MI     #MI
         Mar     #MI     #MI     #MI
         Apr     #MI     #MI     #MI
         May     #MI     #MI     #MI
         Jun     20     #MI     #MI
         Jul     20     #MI     #MI
         Aug     20     #MI     #MI
         Sep     20     #MI     #MI
         Oct     20     #MI     #MI
         Nov     20     #MI     #MI
         Dec     20     #MI     #MI
    The expected result is:
    Stat1     BegBalance     #MI     20     20
         Jan     #MI     20     20
         Feb     #MI     20     20
         Mar     #MI     20     20
         Apr     #MI     20     20
         May     #MI     20     20
         Jun     20     20     20
         Jul     20     20     20
         Aug     20     20     20
         Sep     20     20     20
         Oct     20     20     20
         Nov     20     20     20
         Dec     20     20     20
    So, essentially though the @XRANGE takes into account BegBalance and calculates for each year based on prior year->dec, which is good. However, introducing the @PRIOR doesnt calculate BegBalance. Looks like I dont have any option other than using @MDSHIFT instead of @PRIOR when it comes to using @PRIOR with @XRANGE.
    Unless I am incorrectly using the @PRIOR statement with @XRANGE. Please suggest.

  • Sharing User Defined Variables across projects

    Hi,
    I'm wondering if it's possible to share User Defined Variables across projects. What I have in mind is that I would like to have my User Defined Variables configured in a central location and then insert them into my projects as linked variables so that they update automatically when I change their values. For example, I define a variable named Product_Version that has its value set to 9. Then I insert this variable into all my projects as a linked variable. After 2 months the product version changes to 10, so I change the value of the variable to 10 in the location where it is stored and it is automatically updated in all the projects. Can this be done somehow? I'm new to RoboHelp and I can't find any answer. I've been searching for the solution for some time in the product help, on the Internet to no avail. I even contacted Adobe Support and they redirected me to this forum I used Help and Manual before and their way of dealing with user variables was pretty simple.

    Hi there
    Unfortunately RoboHelp doesn't offer up a way to allow this, At least, not directly.
    However, I do believe I found a way to make it happen, The variables are stored in a file named rhvariable.apj. So what you could do is to add this file as a Baggage File to each of your projects that will share the variables.
    Now you would create a Shared Location as well as a new Category in your Resource Manager. This will create a common location to store the apj file.
    Add the Baggage File to the location. Repeat the process for all projects that are sharing the variables.
    Now, when the variable gets changed in any of the participating projects, the shared location should be updated and you can accomplish the goal.
    However, note that even though you will have what you are wanting, it will still require opening each of the participating projects, synchronizing the APJ file and generating the output in order to update it all. No way I'm aware of to escape that.
    Cheers,,, Rick

  • Can I use a variable across events?

    Hi there,
    SDK newbe! I'm successfully parsing an GroupWise WebAccess event log.
    At the beginning of each days log is a line with the server name and IP
    address. Subsequent events only have the date/time and event message.
    How can I capture the name and IP of the sever and then use it for
    SourceIP and SourceHostName for all the other subsequent events?
    if (this.s_RXBufferString.search(/^.*?IP Address: (\w+) \((.+)\)/) !=
    -1) {
    /^.*?IP Address: (\w+) \((.+)\)/.exec(this.s_RXBufferString);
    var InitSrvr = RegExp.$1;
    var InitSrvrIP = RegExp.$2;
    this.evt = "Test_IP_Variable";
    this.bm = this.s_RXBufferString;
    this.sip = InitSrvrIP; //This does work
    this.shn = InitSrvr; //This does work
    this.sun = ("KirkWasHere " + InitSrvr);
    instance.SEND_EVENT = true;
    return true;
    // give the following a try. $1-$3 are mm-dd-yy, $4-$6 are hh-mm-ss,
    else if (this.s_RXBufferString.search(/(\d{2})-(\d{2})-(\d{2})
    (\d{2})\d{2})\d{2}) (Login failed): (\S+)/) != -1) {
    /(\d{2})-(\d{2})-(\d{2}) (\d{2})\d{2})\d{2}) (Login failed):
    (\S+)/.exec(this.s_RXBufferString);
    this.evt = RegExp.$7;
    this.sun = RegExp.$8;
    this.sip = InitSrvrIP; //This does not work?
    this.shn = InitSrvr; //This does not work?
    this.bm = this.s_RXBufferString;
    this.sev = "3";
    instance.SEND_EVENT = true;
    return true;
    kmaule
    kmaule's Profile: https://forums.netiq.com/member.php?userid=306
    View this thread: https://forums.netiq.com/showthread.php?t=46902

    kmaule,
    First, ARGH! Why can't systems create audit data? Or if just logging
    data, why can't they do something sensible like have a date in there like
    everything else? *sigh*
    Okay, I feel better now. I have not tried either of the following ideas,
    but I want to share them so you can figure them out and hopefully post
    back their feasibility. I'm hoping to have time to test this next week,
    but who knows with how things have been lately... busy busy. Here are the
    two ideas:
    1. Collector development has the idea of a 'Session' object which is made
    to span across two events. This is useful when you need to link two
    original events to create one Sentinel events, such as with OES and
    filesystem auditing; in that case the OES system sends three lines per
    filesystem event and Sentinel must group them to create one Sentinel
    event. Similarly, eDirectory object-create events are actually two events
    (object create without object class, and add-value with the object class)
    that become one in Sentinel (eDir auditing is just THAT lost-level...
    crazy) and also LDAP events from eDir consist of the LDAP Request event
    and the LDAP Response event. Session objects make this possible, but they
    are meant to exist for a short period of time (I think usually one second
    or so, though they have a customizable timeout as I recall) and are meant
    to be created and then used when other conditions are satisfied. My hope
    is hat you can abuse this functionality to store a variable between events
    and then nuke the old session object when a new date comes through. More
    on sessions:
    http://www.novell.com/developer/plug..._sessions.html As I
    read more about this I think it's not going to be as possible as I
    thought. Hmmmm
    2. Set a variable on the collector object somehow, and I mean in-memory,
    not in the hard-coded plugin or something. I need to get the debugger
    going to see how this could work, but the problem with your local
    variables is that they're local variables, so they do not persist when the
    current variable scope (the current function/method) returns to whatever
    called it, so the next time something calls it then they are brand new
    again. The logic needs to set these variables somewhere that will persist
    (Session or collector object instance level) so that it can be retrieved
    from there for each subsequent event.
    Other dirty things I would not recommend, but which may work. I believe
    you can get at dynamic list data in collectors. You could potentially
    store the date there when it comes in and then retrieve it on subsequent
    events.
    Other dirty things... use the current date for everything. Pulling this
    up in code should be trivial, but it implies that events come in on the
    current date. That's probably a safe assumption 99.99% of the time, but
    some events may come in wrong at the start of a new day, though you could
    add logic to help with that too.
    Ideally GW needs better logs, and more than that it needs a true auditing
    interface of some kind.
    Good luck.
    On 02/21/2013 08:54 AM, kmaule wrote:
    >
    > Hi there,
    >
    > SDK newbe! I'm successfully parsing an GroupWise WebAccess event log.
    > At the beginning of each days log is a line with the server name and IP
    > address. Subsequent events only have the date/time and event message.
    > How can I capture the name and IP of the sever and then use it for
    > SourceIP and SourceHostName for all the other subsequent events?
    >
    > if (this.s_RXBufferString.search(/^.*?IP Address: (\w+) \((.+)\)/) !=
    > -1) {
    > /^.*?IP Address: (\w+) \((.+)\)/.exec(this.s_RXBufferString);
    > var InitSrvr = RegExp.$1;
    > var InitSrvrIP = RegExp.$2;
    > this.evt = "Test_IP_Variable";
    > this.bm = this.s_RXBufferString;
    > this.sip = InitSrvrIP; //This does work
    > this.shn = InitSrvr; //This does work
    > this.sun = ("KirkWasHere " + InitSrvr);
    > instance.SEND_EVENT = true;
    > return true;
    > }
    >
    > // give the following a try. $1-$3 are mm-dd-yy, $4-$6 are hh-mm-ss,
    > else if (this.s_RXBufferString.search(/(\d{2})-(\d{2})-(\d{2})
    > (\d{2})\d{2})\d{2}) (Login failed): (\S+)/) != -1) {
    > /(\d{2})-(\d{2})-(\d{2}) (\d{2})\d{2})\d{2}) (Login failed):
    > (\S+)/.exec(this.s_RXBufferString);
    > this.evt = RegExp.$7;
    > this.sun = RegExp.$8;
    > this.sip = InitSrvrIP; //This does not work?
    > this.shn = InitSrvr; //This does not work?
    > this.bm = this.s_RXBufferString;
    > this.sev = "3";
    > instance.SEND_EVENT = true;
    > return true;
    >
    >

  • Session state variables across multiple ApEx applications

    We have a suite of loosely integrate ApEx applications that all share a common authentication scheme. When you first log in we attempt to load a series of session state variables with temporary data to streamline various logging and authentication related activities for the life of the session.
    However, these session variables seem to disappear when you move from one application to another, so they are not truly tied to just the "session" which carries over across all applications, but the application from which the session state is set.
    What is the suggested way, keeping in mind that the data being held may have security related context, to preserve values during a session, but regardless of which ApEx application you are in.
    The method we are using to share the authentication is using a common "Cookie Name" from a common subscribed authentication scheme as suggested elsewhere on this site and seems to work very well outside of this specific issue.
    Thanks in advance,
    Barney

    Apologies for the delay getting back on this.
    My use of the word "disappear" was probably misleading. They were not visible from the second application. When setting "Session State" I was under the impression that it was setting it for the authenticated session, not for the specific application. (I am referring to the: apex_util.set/get_session_state).
    Your solution will work fine, as long as I know which application the user last authenticated against. However, it could be one of over 30 (and growing) different applications which would require me writing a program to go through every "p_flow" to try and find a valid value every time I need to reference the field.
    It would be really beneficial if you could store true Session variables which stay alive for the life of the authenticated session and is available to anything authenticated against that session id. This would streamline alot of cross-application program development.
    The "get/set_session_state" is a misleading as it is not a Session value, but an Application value. The Session exists across multiple applications, while this procedure does not.
    Thanks,
    Barney

  • Global Variables across sessions in PL/SQL package Specification

    Hi,
    Is there a way I can share a variable value across sessions that doesnot affect by Commit/rollback.
    The value would be set by one session and is visible across sessions, until it is set to another value by another/same session, and the new value is visible across.

    V$Session is not granted to the user executing this. So, had to go with the context. Finally could resolve with the following code.
    Run by DBA
    create or replace context ctx1 using USER_procowner.pkg_global accessed globally;
    grant execute on dbms_session to USER_procowner;
    Run by user_procowner
    create or replace package user_procowner.pkg_global AS
    procedure set_lock(in_val IN VARCHAR2);
    Function get_lock RETURN VARCHAR2;
    end pkg_global;
    create or replace package body user_procowner.pkg_global AS
    procedure set_lock(in_val IN VARCHAR2) IS
    begin
    dbms_session.set_context('ctx1','var1',in_val);
    end;
    Function get_lock RETURN VARCHAR2 IS
    begin
    return (Sys_context('ctx1','var1'));
    end;
    end pkg_global;
    grant execute on pkg_global to user_procuser;
    exec user_procowner.pkg_global.set_lock('Y')
    select user_procowner.pkg_global.get_lock Lock from dual;
    LOCK
    Y
    exec user_procowner.pkg_global.set_lock('N')
    select user_procowner.pkg_global.get_lock Lock from dual;
    LOCK
    N
    The current value of var1 is visible across sessions using user_procowner.pkg_global.get_lock.
    Thanks to all contributors.

  • Sharing variable across Threads created by ThreadFactory

    Hi,
    I am initializing an ExecutorService as:
    static ExecutorService service =
    Executors.newFixedThreadPool(16, new ThreadFactory() {
    @Override
    public Thread newThread(Runnable r) {
    Thread t = new Thread(r);
    t.setContextClassLoader("<<My_Class_Loader");
    return t;
    Now, I have to initialize a service that should be initialized only once that all the Callables submitted to this ExecutorService can use. The variable needed to be shared across the Threads must have "My_Class_Loader" as its ContextClassLoader. How can I do that? Thanks in advance.

    Something like this:
    Thread t = new MyThread(r, ccl); // ccl = your context class loader
    public class MyThread extends Thread
      private MyVariable myVariable;
      public MyThread(Runnable r, ClassLoader ccl)
        super(r);
        this.setContextClassLoader(ccl);
        myVariable = ...; // your class loader stuff
      public MyVariable getMyVariable()
        return myVariable;
    // ... then runnables can go:
    ((MyThread)Thread.currentThread()).getMyVariable();

  • Passing Variables across stage in OSB

    Hello All,
    I am using OSB 11g and I am new to this, for my project I have created a proxy service where in the message flow I have created a conditional branch, within that I have given pipeline->stage->assign. In Assign, I am assinging an expression value to a new variable created for that Assign. I need to use this variable outside the stage and branch for another branch activity. Is it possible to make this variable accessible to activities outside the stage and branch??
    Is there any other better method to create variables which can be used across the message flow...like how we use in BPEL.
    Please guide me to proceed with this...

    Can you let us know your use case? If your message flow starts with a pipeline pair and in that pipeline you declare a var, say myVar and after that pipeline you have a conditional branch then in the each and every branch you may access that variable (myVar). If any of the pipeline in any conditional branch defines it's own myVar then the local myVar will override the global one.
    Can I use the variable outside the pipeline or will the variables be accessible only within stages of pipeline??When you say outside, then what do you mean by that?
    Regards,
    Anuj

  • Updating a variable across multiple files in a book

    Hi guys,
    I have a book file with multiple files (prelim pages and chapters). In the header of each prelim page and chapter file I'm using a variable. How can I make a simple change to the variable and update it across all files that use it? I've tried looking through the menus and opening all files but I can't see any method of making a global change.
    Advice appreciated.
    Cheers
    Carl

    How about File > Import formats …
    1. make a new file (source) where you define just the variable you want to copy to other files (targets)
    2. import that variable from the source file into the target files
    When all the target files are in a .book, you can select them in the book and then use File > Import formats. Otherwise, the same command from inside each target – but you can always make a dummy .book referencing all the target files.
    Setting up a source file first means you can work with only the variables you want to, if you have some that change per chapter and others that stay the same throughout the book.
    N
    [ps] Watch out for the default behaviour of the Import from Document pulldown, which sets itself determinedly to "current file"

  • Persistance of  variables across the maps

    Hi All,
    I want to store the value of the variable basically in the lookup table, so that i can be able to modify the entries in the table in different maps.
    IS it possible in XI?
    I cant use the global/container  variables coz its not accessible across the maps.
    I cant use the Value Mapping table because i cant modify the table in runtime, i mean insertion/deletion of entry in the table.
    Can anyone help me in this.....
    Regards
    Venkatesh

    Hi,
    then probably you may go for RFC/ JDBC Lookups for this kind of rerquirments
    Refer
    Data Lookup Optimized
    The specified item was not found.
    Thanks
    Swarup

  • Applying User Defined Variables across project

    Hello,
    I'm working with the User Defined Variables feature and can't
    seem to figure out how to apply a variable/value across all topics.
    I may have misunderstood the definition of what this is supposed to
    do, so it may be user error. It is my understanding that if you
    have information that use repeatedly, for instance if I refer to a
    product name in numerous topics and the product name changes, I can
    set up a user defined variable and set this to update all the
    occurrences. I can change it going in each topic and each sentence
    where the occurence is by right-clicking the word and selecting
    Insert User Defined Variable. Any ideas as to what I can do to make
    a global update. Also, I'm reading the help, but still seem to be
    missing something.
    Thanks,
    Michele

    Thank you, Peter! This article is very informative and much
    more clear (to me) than what I read in the RoboHelp help manual. I
    understand now that this feature is used when you are creating
    topics in a project and anticipating what may change--in which case
    you insert the variable as you need it, then if it changes in the
    future you can update it easily. I was looking at it as more of a
    global search and replace to update information that already
    exists. I think it will come in handy with our documentation
    projects.
    Thanks again. :-)
    Michele

  • Making a URL a variable across numerous scripts

    I understand using a databank value to replace a URL in a script. I would like to add a twist to that and have a variable URL value that can be in a single location and used across numerous scripts.
    The objective is to be able to set up a series of scripts (30+) for regression testing that can be run in the environment (URL) denoted in a single location without having to edit each script.

    one solution is to add a small pice of VBA code into your scripts that reads a file from a specific location (lets say c:\empirix\config\myConfig.txt)
    this file could then contain the URL you would like to use for your test runs.
    -- code example of accessing a config file --
    (add this code in the script open, script play or on the before play on the first page)
    Dim m_util As EmpirixUtilities.FileIO
    Set m_util = New EmpirixUtilities.FileIO
    Dim resultb As Boolean
    Dim statusStr As String
    Dim MyURL As String
    'Get all content of the file (note that the file MUST exist)
    resultb = m_util.ReadFile("c:\empirix\config\myConfig.txt", 0, statusStr,_
    MyURL)
    Call RSWApp.WriteToLog(CStr(resultb), statusStr, _
    MyURL)
    Set m_util = Nothing
    -- end of file IO example --
    then you should force the eTester script to use your new URL from the config...
    one way is to use the changenavigation...
    example (should be placed in the before play of page 1)
    Call RSWApp.ChangeNavigation("", MyURL, "", "", False)
    in this way all your scripts will use this config file...so you only have to change it in this file...hope this helps...
    /m

  • Share Formats and Variables Across A Book?

    I'm sure this has been discussed before but search didn't turn up anything.  Is there a way to share paragraph and character formats, variables, etc across a book?  It's really cumbersome to have to reimport them across all the documents whenever I change something, and that often leads to confusion.
    Thanks!
    John
    www.controlgeek.net

    I wish Adobe would just add a "master document" format or something where you could make all changes and not have to manually re-import.
    Ok, now imagine the case where you want Variable "FileVersion" to have the same name but different values in each component file .
    Using variables does indeed not auto-update across a book, but sometimes you don't want it to. Cross-references do auto-update across a book.
    Anyhow, with the standard scripting now available in FM10, I suspect your "one-button" wish may already be granted.
    It may easily be possible to add a "propagate variables" operation to a script for the overall work flow.
    hmmm. I could use a script that propagate variables, sets condition codes, applies master pages, updates the book, sets color view, selects PDF options and renders to PDF ...

  • I would like to know if i can share variable across internet through labview?

    Hi, I am trying to learn how to share measured data across internet through labview so that it can be viewed and controlled offline. For this i have seen the G server configuration guide. Can i have a shared variable so that the data logged into this variable can be accessed and controlled through the other remote system. Further  can i have some theresholding operation on this shared variable to raise a alarm when the condition is satisfied.
    If there is some reference document which can clear these issues then kindly post the same.
    Regards
    Shashi

    differential equation wrote:
    I have read the link which you have forwarded. I just want to reconfirm my understanding that if we want to share the variable using single process then we don't require any special hardware but in all other cases we need to have dedicated hardware.
    You don't need any dedicated hardware. The variable engine can run on your local computer.
    LabVIEW Champion . Do more with less code and in less time .

  • How to access variables across JSP and JavaScript?

    Hi,
    I have some .js files and in those files, some of the methods need to access to the variables that I'd declare in the jsp files. How do I do it?
    Anne

    You can do it this way, but I'm not sure if this is what you had in mind.
    Say you had a java variable called XString. And you wanted to display
    the value of XString in a javascript Alert. Here's how:
    <html>
    <body>
    <% String XString = "Hi There!"; %>
    </body>
    <script language="javascript">
    alert("<%=XString%>");
    </html>Hope This Help,
    P.

Maybe you are looking for

  • Multiple suffix creation

    Does DSv5.2P4 support creation of multiple suffixes within the same directory instance. say i need such a tree: ldap1.company.com:389 | |-o=company.com | |-ou=people | |-ou=groups |-o=cacompany.com | |-ou=people | |-ou=groups

  • How to default payment term from Site level

    Hi All, When creating an Order, the payment terms are defaulting from the defined defaulting rules. As per the defaulting rules, it is supposed to pick as following seq.. 1 Related Record - Invoice To.Payment term 2 Related Record - Ship To.Payment t

  • ETL for Foxpro DBF files

    Hello, Could you please inform me whether there is any facility in OWB for importing old Foxpro DBF files? We want to make a data warehouse from old Foxpro systems and there are terabytes of data in the foxpro dbf format(It would be big even after th

  • Error loading servlet: weblogic.servlet.FileServlet with v. 4.0.3

    Servlets have been working for months. Suddenly, I'm getting           this error (see below) as soon as I try to hit a servlet.           The startup process looks normal. I've re-installed WL v 4.0.3           several time, gotten the license in pl

  • When I try to go to itunes store itunes shuts down?

    When I have itunes open and I try to go to the itunes store home page windows shuts itunes down? any idea what is causing this or how to fix?  I remember a long time ago when I downloaded an update for itunes my cd/dvd drive would not work so someone