date conversion function

I'm new to odi.i worked on the apatar tool. Now, I'm exploring tool ODI, part of the Installation is complete
now, I want to use the TO_DATE function. The infeed table has column with a varchar data type date (allows to say:01/01/08).now I want to load this column in the data store of output with the DATE data type column.)
You can direct me to the link where the syntax of all these functions (expression editor) are given.

I hope so, ODI. C$ _0TEST_TARGET. C1_BILLING_DATE is of type DATE.

Now change the option 'Drop the Tables of Temporairy' your LKM No. (and/or IKM) in order to keep the table$ CAN. And launch the interface once more. Is the value of the ODI. C$ _0TEST_TARGET. C1_BILLING_DATE correct?

Tags: Business Intelligence

Similar Questions

  • Really Simple Date conversion function... but does not work

    For my application, I need a function that converts a date in a date that is a Monday.

    I wrote this simple function and I tried for many times... but it just doesn't work. It returns a null value. The problem lies in the IF statement.

    I'm using iSQL 9
    CREATE OR REPLACE FUNCTION to_monday ( datum IN DATE )
      RETURN DATE
      AS
    BEGIN
      FOR n IN 0..6 LOOP
        IF ( TO_CHAR(datum + n, 'day') = 'friday' ) THEN
          RETURN (datum + n - 4);
        END IF;
      END LOOP;
    END;
    SELECT to_monday(CURRENT_DATE) FROM dual;
    Published by: popovitsj on 2012-mrt-11 05:07

    Published by: popovitsj on 2012-mrt-11 05:09

    Published by: popovitsj on 2012-mrt-11 05:09

    Published by: popovitsj on 2012-mrt-11 05:12

    It is already available.

    SQL> select next_day(sysdate,'monday') a from dual;
    
    A
    ---------
    12-MAR-12
    
  • dynamic double bit data conversion

    It could be very simple, but I was confused. I have current data and average data as in code. I want to build the table using these data, save them on my hard drive and open in word with header (current and average)

    Problems:

    I have data from two sources in lead generation and versions table as shown entry table to write on the worksheet vi. I get the error source is dynamic and double sink is a bit. It is the most difficult part of my life to find out what range of conversion to use.

    When I run the vi (lets assume the good range of conversion is connected and there is no conversion error) pops up the dialog for path that comes up constantly on dialog

    Ideally I want appears on the screen when I press on would go so that I can browse location to save the file, and once the path is specified vi works continuously and the data is written to the worksheet while vi is running.

    Thanks a lot for reading and help

    See you soon

    Welcome to the evil world of dynamic data. What you really want to use is the merging of signals feature. When you do this a dynamic data conversion will be automatically added between the signals to merge and writing on a spreadsheet file.

    You can consider using writing to the file position as directly accepts dynamic data.

    With respect to the path, use a shift register.

  • Passage of data between functions

    Hello

    Is it possible to pass data between functions? What I try to do is the following:

    I have a private function called onBtnBook which will do what (component .mxml) page of my application will be sent to the user when the user clicks a button. I need to capture the page that the user performed before they have clicked on the button and you can do this by capturing the selectedIndex value in a variable of the ViewStack I use for Navigation and is in my main Application file.

    What I have to do then is when the user clicks the back button, it sends back to the page they were on. I have a second private function called onBtnBack to handle this. However, as I need to use the variable created in the onBtnBook (which contains the value of the selectedIndex of the page that the user did) in my onBtnBack function, to return the user to the correct page, I am short of problems with access to the data in this variable.

    Is there a way to access the data of the variable in the 1st onBtnBook of function and handling in the 2nd onBtnBack of function?

    Thank you

    You must make a public variable and it may be related.

    [Bindable]
    public var myLastIndex:int;

    private function onBtnBook (): void {}
    myLastIndex = viewstack.selectedIndex;

    }

    private function onBtnBack (): void {}
    viewstack.selectedIndex = myLastIndex;
    }

    or something in that sense

  • Problem of data Conversion HTTPService

    I have a REST-style web service that returns an HTML document that looks like this:

    < a >
    < b >
    < c > 2.0 / < c >
    < b >
    < b >
    < c >/< c > 3.2
    < b >
    < /a >

    I can use the browser to view this document, and it looks as expected. However, when I use a Flex HTTPService to get the document and display its values, all numbers ending by ".". 0' are rounded/truncated. For example, the first element < c > above appears as '2' instead of '2.0 '.

    Why numbers are converted? Shouldn't they have considered all other text in an XML element?

    That's what I call service:

    < mx:HTTPService id = "myService" url = "itsurl" method = "GET" useProxy = "false" / >

    And it is an example that shows a number being trucated/rounding:

    < mx:Label text="{myService.lastResult.a.b[0].c}"/ >

    Thank you

    Mike

    The default value for HTTPService is resultFormat = "object", which causes Flex convert your xml file into a tree of dynamic objects. It is rarely what you want. Among other things, he's trying to type conversions.

    Instead, the value resultFormat = "e4x". This will give you your xml code that the United Nations has changed. It also gives you access to the e4x which is very powerful API. It includes features of course, search and always.

    In addition, for another thing what a banal or demonstration app, do not directly bind to the lastResult. Use a function instead of the result handler. Here is an example, untested:


    (in the script)
    Import mx.rpc.ResultEvent;
    [Bindable] private var _xmlResult:XML; var instance to store the data
    private void onResult(event:ResultEvent):void {}
    _xmlResult = XML (event.result);
    trace (_xmlResult.ToXmlString ()); to see exactly what you
    ....
    }

    Note your example of XML is not valid, so I can't show you an example of an e4x expression.

    Tracy

  • View threads AND grouped by date/conversation

    Hello

    I try to have messages see the thunderbird grouped by date (with a thread on today, yesterday, last week, etc.) and within these threads, see email conversations. A conversation that began three weeks ago, but has received a new email today is expected to manifest itself in the thread today, but from the first email of the conversation.
    I did not understand if it is possible, as grouped by (Date) and Threads are mutually exclusive. Any ideas?

    Thank you

    As you say, it is there only one group so at the time. So I guess that your out of luck.

    You could fill a better bug report and see if one of the developers interested. https://Bugzilla.Mozilla.org/

  • The modbus two registers to float data conversion

    I read a modbus data HAD two piece of the registers-40609 and 40610. The content of the register I get is an array of two elements (12458, 14019). I want to convert these numbers into a variable, the value of the point. Library modbus does have a VI that does? If this is not the case, how to convert it?

    Thank you!

    Reverse the order of the numbers entering the Join function.

  • CRIO-9066 FIFO data conversion problem

    I'm having a problem with a multiple element SGL FIFO on a cRIO-9066 where data is not read correctly.  Here is the configuration:

    I have two Host - to - Target FIFOs, identical except for type: FXP is the other SGL.  Both are 16-element.  Data SGL which are read turns a conversion error.  A sample minimum (2014 for the 9066) project is included.

    The example works fine if the FIFO SGL 1-element; something more big fails.  Is not supported on the same 9066 thought that the project allows the creation?

    Thank you

    David

    It seems that maybe it's a bug in the Simulator.  Exit the simulation mode, run it on your target and watch the interactive mode in this way.  The results are what you expect.  It is strange that they would be converted at some point.

  • Problems with data conversion

    Hi all

    I'm doing an A - D conversion. Conversion table is given in attachment, as well as the file vi. I got three 8-bit during serial communication data and join them to form a 24-bit number (I mention this so there is no question why mets implement entry like that). As you can see in the table of conversion without exit number must be greater than Vref, however in this implementation, I get a flow of 2 * Vref.

    Can someone please help me find the error.

    Darko

    The conversion formula is implemented for bipolar data while your VI U32. You cannot represent negative numbers with U32 (unsigned integer).

    Lynn

  • Simple Date conversion

    Hello. Small question. How to convert a date (String) in the following format:

    JJ/MM/AAAA

    on a Date? Then, I want to take that date and turn it into something like the Saturday, January 1, 2011. HttpDateParser seems as if he accepts not DD/MM/YYYY as the format.

    Thank you.

    I added a 3rd option for my suggestions above - that's the way I think you should do.

    Also change the treatment of conversion so that you return a long and not a Date - it is an object less for the system to be managed.  To get along a Date is just

    . getTime().

    Once you have the long, then watch SimpleDateFormat.  In your case I think you want:

    public static SimpleDateFormat sdFormat = new SimpleDateFormat ("EEE, MMM DD, YYYY");

    Now, to get the channel of your choice:

    String timeString = sdFormat.formatLocal ();

    Should all work well for you.

    Let us know how you go.

  • The Date conversion chain.

    Hello

    I used following code to convert string to date but apply the time zone of the device during the conversion. I don't need this but I
    Here same time of this string.
    as
    String = '07:59:17.427 2009-07-31'
    Date = 2009-07-31 07:59:17.427

    Date formatter = new Date (HttpDateParser.parse ("07:59:17.427" 2009-07-31));
    SimpleDateFormat dateFormat = new SimpleDateFormat ("yyyy-MM-DD hh: mm:." "") "'SSS');
    String strCustomDateTime = dateFormat.format (formatter);

    SimpleDateFormat format according to the local time zone. DateFormat does not work. see the documentation for the API

  • Disqualification: Date conversion problem

    Hi all

    For some reason, it turns out that which was built as 00:30:15 (HH) will be automatically converted to 12:30:15 (HH) as string value. See screenshot below.

    Date issue.png

    Tried several things in the reference list of date format, but no resolution yet. How can we avoid this conversion?

    Problem has been resolved:

    Under two date formats have been contradictory:

    DD/MM/YYYY HH: mm 23/01/2014 12:30
    DD/MM/YYYY HH: mm 03/01/2014-10:10

    Deleted the premiera and dates are converted correctly now.

  • the date conversion problem

    Hi friends,

    I have a problem with the conversion of the date in my PB.

    SELECT eff_dt, TO_CHAR (TO_DATE (eff_dt, 'Dd-mon-yy'), 'dd-mm-yyyy') DATE from une_table;

    It gives me o/p as -.

    DATE OF EFF_DT

    01.01.1950 00:00:00 01/01/2050

    as you can see here the year is wrong, while I convert the date that I use the substr() also to cut the year of first line, but it gives me the 50 i.e. onle last (YY)

    So, if someone can help me with this prob.

    If eff_dt is a column DATE, then stop calling to_date on it.

    If this is not the case, consider making it into a DATE column. If you are unable to do this, use the format mask appropriate when you call to_date

  • Conversion function

    Hi all, I have few values as below, I want to convert them to two decimal places. First of all the four conditions are achievable using the char function. However when case is 5 i.e. (. 9) performances comme.90 (. 09) is shown comme.09, but I need.9 like 0.09 0.90 et.09. Please ask for help. 9 > 9 h 00 90 > 90.00 900 900.00 > 9000 > 9000,00.9 > 0,09.09 > 0.09 SELECT TO_CHAR (. 9, '99999999.99'), TO_CHAR (. 09, '99999999.99'), TO_CHAR (90, '99999999.99'), double TO_CHAR(9000, '99999999.99')

    with
      t as (
        SELECT 45 as data FROM DUAL UNION ALL
        SELECT 63  FROM DUAL UNION ALL
        SELECT 144  FROM DUAL UNION ALL
        SELECT 144  FROM DUAL UNION ALL
        SELECT 6    FROM DUAL UNION ALL
        SELECT 132  FROM DUAL UNION ALL
        SELECT .3  FROM DUAL UNION ALL
        SELECT 12  FROM DUAL UNION ALL
        SELECT 3    FROM DUAL UNION ALL
        SELECT 21  FROM DUAL UNION ALL
        SELECT 15  FROM DUAL UNION ALL
        SELECT 573  FROM DUAL UNION ALL
        SELECT 84  FROM DUAL UNION ALL
        SELECT 99  FROM DUAL UNION ALL
        SELECT 18  FROM DUAL UNION ALL
        SELECT .30  FROM DUAL UNION ALL
        SELECT 333  FROM DUAL UNION ALL
        SELECT 141  FROM DUAL UNION ALL
        SELECT 195  FROM DUAL UNION ALL
        SELECT .6  FROM DUAL UNION ALL
        SELECT 3    FROM DUAL UNION ALL
        SELECT 120  FROM DUAL UNION ALL
        SELECT 3    FROM DUAL UNION ALL
        SELECT 30  FROM DUAL UNION ALL
        SELECT 18  FROM DUAL UNION ALL
        SELECT .174 FROM DUAL UNION ALL
        SELECT 114  FROM DUAL UNION ALL
        SELECT .36  FROM DUAL UNION ALL
        SELECT 210  FROM DUAL UNION ALL
        SELECT 6    FROM DUAL UNION ALL
        SELECT 96  FROM DUAL UNION ALL
        SELECT 6    FROM DUAL UNION ALL
        SELECT 0    FROM DUAL UNION ALL
        SELECT 1    FROM DUAL UNION ALL
        SELECT 0    FROM DUAL UNION ALL
        SELECT 0    FROM DUAL UNION ALL
        SELECT 1    FROM DUAL UNION ALL
        SELECT 1    FROM DUAL UNION ALL
        SELECT 2502 FROM DUAL UNION ALL
        SELECT .06  FROM DUAL UNION ALL
        SELECT .6  FROM DUAL
      )
      select TO_CHAR(data, '99990.00')
        from t
        order by 1;
    
  • Incorrect date by function


    Hi all

    Below, I have created a function to return the date value of a fixed-length characher database input file. But if a space has been passed to this function he gave erroneous results.

    
    

    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
    Logged in as crm

    SQL >
    SQL > date of RETURN of FUNCTION to CREATE or REPLACE date_check (value_in VARCHAR2) IS
    2
    3 test_date DATE;
    4
    5 BEGIN
    6
    7 test_date: = to_date (value_in, 'DDMMYYYY');
    8
    9 test_date of RETURN;
    10
    11 END date_check;
    12.

    Feature created

    SQL > select to_date (date_check ('04 04201'), 'dd-mon-yyyy') of double;

    TO_DATE (DATE_CHECK('0404201'),
    ------------------------------
    04/04/01

    SQL >

    The input file has a space in the 8 characters sets the file format.

    Can you please tell me how to fix this feature. ?

    Thank you

    Hello

    Z. Sid_ wrote:

    Hi Frank,.

    Space could not be there forever and if he can come to any post in 8 character then how to deal with this situation?

    You can use REPLACE or TRANSLATE to get rid of the spaces, if they exist.  I have modified my first answer with an example.

Maybe you are looking for