INSTR and INSTRB difference

Hi all
can anybody show me the difference between INSTR and INSTRB
and LENGTH and LENGTHB functions??
And I can't understand LTRIM function briefly.
Thanks....

My NLS settings is below. I select these data from v$nls_parameters
NLS_LANGUAGE      AMERICAN
NLS_TERRITORY      AMERICA
NLS_CURRENCY      $
NLS_ISO_CURRENCY      AMERICA
NLS_NUMERIC_CHARACTERS      .,
NLS_CALENDAR      GREGORIAN
NLS_DATE_FORMAT      DD-Mon-RRRR
NLS_DATE_LANGUAGE      AMERICAN
NLS_CHARACTERSET      WE8ISO8859P1
NLS_SORT      BINARY
NLS_TIME_FORMAT      HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT      DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT      HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT      DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY      $
NLS_NCHAR_CHARACTERSET      AL16UTF16
NLS_COMP      BINARY
NLS_LENGTH_SEMANTICS      BYTE
NLS_NCHAR_CONV_EXCP      FALSE
I understand the first, but I didn't understand the second. Why the result was 27
Thanks...

Similar Messages

  • Functional difference between VISA resource name ASRL1::INSTR and COM1

    Config: LabVIEW 6.02, VISA 2.6.0
    I have used a text constant for "VISA Configure Serial Port.vi" for years, and just now I have run into problems.
    With my application, a text constant of ASRL2::INSTR would properly open the port, but it would not send any data, but using COM2 worked.
    What is the difference?

    MAX sets up serial port aliases automatically when possible. Let me try to explain.
    If the alias "COMx" was not previously configured in NI-VISA, and you have a serial port really named "COMx", and that VISA resource string does not have any other user-configured alias, then MAX will bind that alias to that port, regardless of what the full VISA resource string is. That part actually makes sense and shouldn't confuse anyone. If the alias "COMx" is taken, or the user has manually configured a different alias for the serial port (such as "MyDMM", for example), then MAX does not auto-assign the alias for that port. So far so good.
    The confusing part in many cases is how NI-VISA itself assigns the VISA resource string. For COM3, normall
    y NI-VISA would assign ASRL3::INSTR, and so on. There is 1 conflict that usually screws everything up. Since NI-VISA on Win32 allows you to open the parallel port by default as ASRL10::INSTR (for extremely historical reasons), the conflict occurs when you really have a COM10. It's not a terrible conflict, but it is confusing. NI-VISA will match every other port that it possibly can, and then just assign a unique resource name (ASRLx::INSTR) for COM10.
    I am not sure why in your case NI-VISA didn't match COM3 to ASRL3::INSTR. If you want to do some experimenting, try this. Go into MAX, delete all your VISA aliases, delete LPT1 from the tree, exit MAX, restart MAX, and refresh. See if that cleared it up.
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • My IPad want charge I've bought a new charger and use difference outlets but it still want charge.

    My IPad is getting hard to charge,I have to wiggly the charger to get it to charge. I've bought a new charger and used difference outlets. I need to know what is wrong?

    Consider where you are wriggling the charger (I suspect you mean the cable. Why does everybody refer to a cable as "the charger"?) and make sure all the contacts there are free from pocket fluff and such.

  • How to get exact date and time difference?

    Hi,
    When i am using the below sql statement:
    SELECT (TO_DATE('7/27/2006 05:00:15 PM','MM/DD/YYYY HH:MI:SS PM') - to_Date('7/27/2006 8:30:13 AM','MM/DD/YYYY HH:MI:SS AM')) * 24 hours FROM DUAL;
    the output is:
    Hours
    8.50055555555556
    But Actually it is 8.30
    So how can i get exact days and time difference between two dates in Oracle?
    Thanks....
    Regards,
    Suman Sakinala
    Edited by: SSN on Sep 19, 2008 1:27 AM

    Or more clearly (this time I have my date_from and date_to the right way around hehe!)
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t as (select TO_DATE('7/27/2006 05:00:15 PM','MM/DD/YYYY HH:MI:SS PM') as dt_to,
      2                    TO_DATE('7/27/2006 08:30:13 AM','MM/DD/YYYY HH:MI:SS AM') as dt_from FROM DUAL)
      3      ,d as (select (dt_to-dt_from)*24 as diff_hrs from t)
      4  -- end of dates
      5  SELECT TRUNC(diff_hrs) as hours
      6        ,TRUNC(((diff_hrs) - TRUNC(diff_hrs))*60) as mins
      7        ,TRUNC(((((diff_hrs) - TRUNC(diff_hrs))*60) - TRUNC(((diff_hrs) - TRUNC(diff_hrs))*60))*60) as secs
      8* FROM d
    SQL> /
         HOURS       MINS       SECS
             8         30          2
    SQL>

  • Frequency response and phase difference

    Hi,
     I generate "Sine-Swept" with a function generator, which is the input of my device.
    Then, I measure the output(vibration) via a photodiod (which is as voltage).
    Now, I want to obtain FRF and Phase difference between these two wave (output and input).
    In most of the examples, the input and swept has been generated by the software itself, but if the input has been acquired externally and also the swept has been done via a function generator, how would be the FRF?
    I have installed "Sound and vibration toolkit", Could you please give me a heads up, that how can I do that?
    In advance, I really appreciate your help,
    Petar

    Hi,
    I attached the project which I've recorded the data from DUTs. Also, I attached 2 snap-shots of the project, in case of the project file couldn't be launched.
    I have connected the signal from a function generator to "ACH0" channel, and performed the swept-Freq in the output signal of function generator. (Red graph in 1st chart). Please note that the swept sine wave is generated via the function generator itself...NOT VI
    The generated signal by the function generator is the input, which derives the oscillation of a drop,
    A photodiode measures the oscillation of the drop via laser-scattering by drop vibration. SO....the signal generated by the photodiode is the "Response"....(white wave in 1st chart)(connected to "Ach1" channel.
    Now, I want to obtain FRF, which the input is the signal generated by the function generator, and Response is the output of the photodiod'
    As it's seen in the files...the FRF and phase difference is n't what is expected, also the coherence between in and output is zero!
    Please help me out with this problem...
    Thanks
    Petar
    Attachments:
    12.seproj ‏419 KB
    1.JPG ‏183 KB
    2.JPG ‏177 KB

  • PL-SQL Solve: Using INSTR and SUBSTR

    I am trying to work on this and cannot get a solution. Please help
    You have to use INSTR and SUBSTR to solve
    Question:
    You have the following acceptable value
    Numberic: 0-34
    80-100
    or Non Numberic X S U D- D D+
    Im have to use INSTR and SUBSTR functions to test that the value is a valid (as above) number before TO_NUMBER is called:
    SELECT TO_NUMBER('?? ') //HERE ?? and a space (for 100 etc) is for the values as above
    FROM DUAL
    WHERE ....INSTR(......)<=;
    (Hence if the number is true then number comes back or it says no rows)
    and also id non numberic it should also be tested.
    I am completely unsure about it but tried this
    SELECT TO_NUMBER('34 ')
    FROM DUAL
    WHERE INSTR('0123456789',1,1)<=9 (looking at first number ?)
    AND
    INSTR('0123456789',2,2)<=9
    AND
    INSTR('0123456789',3,3)=0;
    Please help

    We have the following value that we can use:
    Numeric: 0-34 and 80-100 only
    or Non Numberic X S U D- D D+
    Have to use INSTR and SUBSTR functions to test that the value is a valid
    (for now only trying to create a function which can later be put into a procedure.)
    SELECT TO_NUMBER('12 ') //e.g HERE 12 and a space for the values as above
    FROM DUAL
    the where clause looks at all three spaces to make sure values are correct (given number or non-numberic values only)
    (Hence if the number is true then number comes back (meaning true)
    or it says NO rows)
    If value is non numeric, test it to allow non numberic also.
    I am completely unsure about it but tried this
    SELECT TO_NUMBER('34 ')
    FROM DUAL
    WHERE INSTR('0123456789',1,1)<=9 (looking at first number ?)
    AND
    INSTR('0123456789',2,2)<=9
    AND
    INSTR('0123456789',3,3)=0;
    Something like this has to be done.....subst (instr, x,x,) i think mite help.

  • Miro hitting inventory and price difference

    Dear All,
    I would like to seek advice of the posting during MIRO on point 4 and 5 why there is a hitting on inventory account and price difference of the amount given? How system get the amount in inventory account and price difference account?
    Really need advice.
    1)
    GR - qty 20
    dr inventory $1500000
    cr GRC $1500000
    2) GI - qty 1 and now remained only 19 qty
    moving price = $75,000
    qty = 19
    price unit = 1
    value = $1425000
    3) MIRO
    dr GRC $1500000
    cr vendor $1500000
    4) MIRO say qty is 21 and amount no change
    dr GRC $1571429
    cr vendor $1500000
    cr inventory $64626
    cr price diff $6803
    5) MIRO say qty is 20 and amount i enter $1507500
    dr GRC $1500000
    cr vendor $1507500
    dr inventory $7125
    dr price diff $375
    thanks

    refer my remarks in BOLD
    4) MIRO say qty is 21 and amount no change
    This scenario is not possible as you have taken GR for Qty 20 only.
    *still you have added $ 71429 in GRC so this should be uploaded on Inventory ($71429 / 21 = 3401.38) hence Inventory account will get updated with $3401.38 * 19 (available stock)  ie $ 64626 & diff of 21 - 19 = 2 * 3401.38 ($6803) will be updated in  Price Diff account*
    dr GRC $1571429  
    cr vendor $1500000
    cr inventory $64626
    cr price diff $6803
    5) MIRO say qty is 20 and amount i enter $1507500
    * Goods receipt is posted with 1500000 but vendor has presented invoice of 1507500 hence the additional cost ie 7500 has to be loaded on inventory but available inventory is 19 as 1 qty is already issued from stock hence (7500/20 = 375) for 19 qty inventory account will updated with $7125 (375*19) & for material which is already issued prior to taking invoice receipt ie 1 Qty (375 * 1) = 375 will hit to Price Diff Ac.*
    dr GRC $1500000                                  
    cr vendor $1507500
    dr inventory $7125
    dr price diff $375

  • Landed costs and price differences

    I'm trying to figure out what PS does to adjust for total value discrepancies between an invoice voucher and associated PO. Say on my PO I have a line item with quantity of 2 and unit price of $10. Therefore total value is $20. When I create a voucher, that same line item is now 2x$11 = $22. I approve that voucher for $22. Now I run the Extract Landed Cost batch process. What does this process do to "compensate" for the difference between voucher and PO? Does it change the unit price of that item in inventory from $10 to $11?

    Hi, yes you are right: Using this approach ML would use price differences for other batches and increase their value instead of posting them as loss like the initial cost.
    The way around that would be to post some unplanned material good receipt for the loss production order, e.g. a material called scrap. In account determination you might make sure that these materials have own stock and price difference accounts that you could treat special in your balance sheet.
    This would be shown in ML like a joint production between the planned product and the scrap material and multi-level variances would be distributed using following an apportionment structure from material master.
    If it is difficult to maintain a reasonable apportionment structure you might implement BADI  cost_split described in note 997264.
    Also a good possibility would be to use a quantity-proportional split that can be derived from the ML quantity structure.
    I could provide an example implementation of that.
    best regards,  Udo

  • Some instr and substr fundamental

    Hi,
    In a procedure, my input parameter would be 123,345,456,567......I will put this in a loop..
    My requirement is like first it will take 123 and i will do some calculation end loop,
    then 345 and i will do some calculation end loop,
    then 456 and i will do some calculation end loop,
    then 567 and i will do some calculation end loop, and so on...
    i think there is some instr and substr fundamental..
    Will be great if i get some suggestion to solve the issue...
    Thanks,
    HP

    Not quite.
    Dbms_utilty.comma_to_table will do the job quite nicely.
    http://www.java2s.com/Code/Oracle/System-Packages/demonstratestheuseofDBMSUTILITYTABLETOCOMMAandDBMSUTILITYCOMMATOTABLE.htm
    Sybrand Bakker
    Senior Oracle DBA

  • Credit memo - Price and quantity difference on the same PO item

    Hello,
    When there are both price and quantity differences between the invoice and the PO/GR on the same PO item, we need two lines on the credit memo to adjust the quantity and the price separately.  However, the system gives the error message "Document contains same order item more than once" .  If we suppress this message, then we have the error saying the debit and credit of the credit memo does not balance, as it appears the system only read the first credit memo line and ignore the second.  Does anyone know how to resolve this (without having two different credit memos for the price and quantity differences)?
    Thank you.

    Hi,
    Please note the following few points.
    1.Credit Memo: Credit memo will be posted when you want to reverse a posted invoice.System will reverse the qty and that much amount of invoice.you can post two line items of MIRO for a sigle PO item for qty and amount.you can not have two lines one for qty and other for amount.
    If you feel that there is a differance of posting in amount for the INVOICE and GR (normally for GR , the amount postings witll be same as PO price.) reverse the invoice  at MR8M or post a credit memo in a single line for amunt and qty and post afresh the invoice amount .
    Regards,

  • What is the conceptual and functional difference between peripheral target and Enterprise peripheral target?

                       Dear All,
    what is the conceptual and functional difference between peripheral target and Enterprise peripheral target?

    Does anyone get a chance to see this ?

  • Vendor Evaluation Delivery Subcriteria Shipping Instr and Adher to Conf Date

    Hi experts,
    I have Vendor Evaluation configured for Delivery subcriteria Shipping Instr and Adher to Conf Date.  These are set to scoring method 6 and B respectively.  In the Purchasing Org Data, for subcriteria Delivery, I have equal weighting set for all 4 subcriteria (on-time del, quantity reliability, shipping instr, and adher to conf date).  When I run the vendor evaluation in ME61, and look at the evaluation of subcriteria, I see a score and weight for on-time delivery, and quantity reliablity.  But for shipping instructions and adher to Conf Date, there is no score and the weight is 0.0.  Does anyone know why there is no weight shown?  I know I have to maintain the scores for shipping instr and adher to conf date but I should see weight as 25% since I set these 4 subcriteria to equal weighting.  Can anyone help?  Thanks!
    Regards,
    Julie

    Hi,
    As an example its not available, nor tried self. As a common rule - if a main criteria created and sub criteria exists, when you run evaluation for main - excluding a stage of sub is not possible.
    Secondly try transaction code: ME6C
    Help says: Set this indicator if you only want to display those vendors that do not have
    an evaluation for certain main criteria. When you click on Execute, a screen allowing you to choose one or more main criteria appears. The missing evaluations for these criteria are then listed.
    here you can selection option to include/exclude evaluation.

  • SAP BI Date and Time Difference calculations in DSO Transformation

    Hello Guys,
    Could you please tell me how to calculate the date and Time difference between 2 fields.
    I have 2 date fields :
    Arrival Date : 6/16/2007
    Departure date : 6/19/2007
    Also i have 2 time fields for the above
    Arrival Time : 13:00:00
    Departure Time : 11:50:00
    I want to display all the four fields and 2 fields for the difference in Date and Time.
    Is it better to calcuate the differences in DSO Transformation or can you do it in the report itself.Could you please let me know the solution.
    Thanks,
    BI Consultant

    Hello Consulant BI,
    Computing the difference of two dates is easy (assuming you really just want the number of days). You can simply subtract the two dates using ABAP:
    data: w_arrival_date type sy-datum,
            w_dep_date type sy-datum,
            w_diff type i.
    w_arrival_date = <your arrival date field here>.
    w_arrival_date = <your departure field here>.
    w_diff  = w_arrival_date - w_dep_date.
    Getting the time difference isn't really much logical. I think what you want instead is to compute the totals days (and extra hours) right? If this is the case, then you can convert the date+time for both the arrival and departure  into a timestamp variable first and then t the get difference.
    Hope this helps.

  • Can i trade my new 4th generation headphones for the 5th generation and pay difference if i have warranty?

    can i trade my 4th generation head phone for the 5th generation and pay difference?
    i have warranty if that helps

    Sorry, but you can not.
    B-rock

  • Can I use my gift card and two differents device ?

    Can I use my gift card and two differents device ?

    Yes, you may use both.
    Dan K. | Mobile Specialty Stores
    Any opinions expressed in this post are those of
    the author and do not represent Best Buy Co., Inc.

Maybe you are looking for

  • HOW DO  I GET MY SONGS BACK ON MY IPOD???

    I accidentally removed my 4th Gen photo ipod from my mac without properly unmounting it, and it went into "disk mode". It would n't allow me to get out of this mode, and itunes nor the finder would see the ipod when it was connected. Oddly enuff, pro

  • Data table for the ratings and feedback of the file

    User provide feedback and rate the file posted in portal Where are these detail stored and which table. This is required to generate report the feedbacks and rating of all files posted in a folder. Sasikala G C

  • GRC-AC v5.3 SP11, Patch 1: CUP E-Mail Log available?

    Hi! Does anyone know if there is a CUP E-Mail log available that lists all e-mails generated from CUP? Thanks, -john

  • New Powerbook G4, Want to use 8.6

    I searched through other forums, but didn't find the answers I needed. Some came close, but not quite. So I apologize in advance if this is answered somewhere I didn't see. I bought a PowerMac G4 in 1999 and upgraded to OS 8.6 soon after. Ever since

  • HTML5 Video won't play in Safari, when frameset used

    I'm the Product Manager for a company who has a product that revolves around video. We've noticed that while we can get the HTML5 video capability in Safari on the iPad working fine in a test harness, as soon as we place that harness in the simplest