Replace comma with nothing

Hi all
In a select statement I need to delete the commnas in a string that has a number with commas.
i.e replace 1,123.10 by 1123.10

select replace(col,',') from table

Similar Messages

  • Question about minimizing. why ddid apple remove minimizing and replace it with NOTHING?

    on tiger, i could double click in the "gray bar" on top of every window in order to minimize it. this was a very good idea, since the buttons to minimize, close or maximize are very small and i also tend to activate my upper left hot corner when moving my cursor to the buttons....
    i think it's good to always change stuff. but if apple removes a function to replace it with nothing at all, i just don't get the point of removing it, since it was a good idea. i know: less is more! but i don't think it's meant this way

    They didn't remove it. You just don't know where to turn it on. The "gray bar" is called the title bar.
    General System Preferences:

  • Replacing comma with space

    Hi,
    Note : I am using SAP 4.6
    Task      : Replace Comma with space
    Problem : Not able to replace comma with space
    I have task where I have to write result file to application server, when I am writing string to application server it is separating by comma, for example if you take below statement it is dividing by space that means in first column PO and then ITEM etcu2026.
    MOVE  'PO ITEM is not there in table EKPO' TO W_RECORD_OUT-ERROR_MSG.
    so to resolve this situation I have used below code for now, I know I can use
    REPLACE ... ALL ENTRIES but this statement is not working in SAP 4.6
    REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
    appreciate if somebody can help me.
    Thanks
    sarath

    Hi,
    Please check the below code.
    REPORT  YSAT_TEST.
    Data: Var1(40) type c value 'Test1,Test2,Test3,Test4'.
    break-point.
    REPLACE ',' WITH space INTO Var1.                   " It will replace only first occurrence
    replace all occurrences of ',' in var1 with '   '.
    CONDENSE Var1 no-gaps.
    write: var1.

  • Replacing comma with Javascript

    Hi,
    How to replace commas in an array with Javascript???
    For eg, i have an array that contain the values 1,2,3,4.
    Here i want to remove the comma. So the solution i am looking for is
    1234.
    How to do this. Can we the Java functions like replace() in javascript?
    How to import the Java classes in Javascript???
    Please do provide a solution for this.
    Regards,
    M.Ananthu

    I'm not aware of any mechanism in Javascript that can help with this. In our fully-internationalized web applicaiton we choose to perform all locale-dependent validation server-side. This includes dates, numbers, currency values etc. About the only thing we check in Javscript is that required fields are filled in.
    I'd be interested in knowing if anyone has solved this in Javscript. Its possible that you could dynamically generate a Javscript validation routine based on the locale-specific formatting symbols, but we decided it wasn't worth it.
    T

  • Replace comma with dot

    Dear all,
    I'm getteing mad with the following issue and need your help.
    I'm working at a PDF-Form including a table. The Values in this table create a datamatrix. This works fine for now.
    Here is my issue: The values in the table are numbers like 12.2 but also 12 or 9 but maximum two digits in front of the "."(dot). Seperation character should be a "." In Germany there is the ","(comma) instead of the "." at the number block.
    For better usability it would be nice having a java script that replaces onBlur all "," with a ".". So I don't have to change the keyboard language to English.
    Is this possible and if yes, how?
    I am an absolutely noob on javascript, so please be patient and do not expect any specific knowledge.
    What I tried (menue is translatet from the German version, I don't know if it is correct:
    onBlur.replace(",", ".");
    I put this in (right click on form) -> properties ->action ->
    add action: on mouse exit
    choose action: run JavaScript
    click on "add"
    Then I copied the terminus from the top in the opening window. Ready (at least this was my thought...)
    It dit not work, now I nedd your help.
    Thank you for your hints, your help and your time.
    Adobe Acrobat XI (German) on Windows 7 64bit (also german).

    ***************SOLVED**********************
    The solution was much easier than expected:
    when you open "properties" by right clicking on the form, go to "validation" NOT "action" (make sure you are in the form editing mode: "tools" -> "forms" -> "edit")
    then chose "run user defined script" and click on "edit"
    type in the following line:
    event.value = event.value.replace(/\,/g, ".");
    click "OK" and then "Close"
    Then you are done. Now, when you leave the form field Acrobat checks if there is a comma and replaces it with a dot.
    For me this was the easiest way to make it work.
    ***************SOLVED**********************
    ***************GELÖST**********************
    Die Lösung war einfacher als gedacht.
    Öffnet man "Eigenschaften" mit einem Rechtsklick auf das Formular, muss man "Validierung" und nicht "Aktionen" auswählen. (man muss im Formulareditierungsmodus sein: "Werkzeuge" -> "Formulare" -> "Bearbeiten")
    dann unter "Benutzerdefiniertes Validierungsskript ausführen" auf "Berabeiten" klicken.
    Im Editorfenster folgende Zeile eingeben:
    event.value = event.value.replace(/\,/g, ".");
    Über "OK" und "Schließen" zurück zu den Eigenschaften
    Das war's. Nun ersetzt Acrobat im Formularfeld jedes Komma durch einen Punkt.
    ***************GELÖST**********************

  • Can you replace data with nothing?

    I have a column filled with data, i.e. "01 "miscellanae, and I'd like to replace the "01 " with "" (nothing). I don't want to leave an empty space, so any "01 "s inthe columng would be replaced by "" (nothing).

    Where does one enter the formula?
    To get the hang of it, start with a simple table like this.  Put a few lines of your data in column A.  Then click in the cell in row 2 of column B and type =.  The formula editor should activate. Then type in the formula editor to make the equation look exactly like this (note the space after the 1) and then click the green check mark:
    Once you have the formula working in cell B2, click once in B2, command-c, select the cells below it in the same column, command-v to paste.  That should convert the other values in column A as you want, removing the 01, and showing the result in column B.
    Then, when you've got the values you want in column B and don't want the formula any more, you can select column B, command-c to copy, then Edit>Paste Formula Results.
    SG

  • Replace comma  with a character only if it is enclosed in single quotes

    I have a string
    String stmt = "insert into ABC values (Default,'ABC','1234,xyz,abc');{code}
    expected the result is
    insert into ABC values (Default,'ABC','1234~xyz~abc')
    I want to replace only those commas with a ~ if they are part of the string enclosed in a pair of singe quotes.
    i am trying something like
    {code}String regex = "\'\\w+(,)+\\w*,*\\w*\'+\1";
    String output = stmt.replaceAll(regex,"~");
    {code}
    but its not working
    Please help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    LearningMachine wrote:
    No, that's not what I am trying to do.
    This is not an insert into a sql, I have to parse a DML (SQL Script) and get table name, values out of it, but I can't split the string with commas.
    Then you should find or build a parser.
    Unless the DML is very well constrained or the set is very small and will remain so, by the time you finish mucking around with all the possibilities attempting it with regexes you will have a parser but not a very good one.

  • How replace comma with break line

    Hi, 
    Instead of John,Dee, i want it to show
    John
    Dee.
    my code isn't do what i want, can anyone help pls?
    thanks
    <cfset mystring ="John,Dee" />
    <cfset TheText = replace(mystring, ',', "#chr(10)##chr(13)#", "ALL") />
    <cfoutput>
    #TheText#
    </cfoutput>

    Yeah.  If you're gonna go ACTUAL HTML output, then forget the line break and just put each indexed value into a <p> tag (which, because it's a block-level element, will place it on each line)
    <cfset myList = 'Aegis,Kleais' />
    <cfoutput>
    <cfloop list="#myList#" index="i">
         <p>#i#</p> 
    </cfloop>
    </cfoutput>
    This should output:
    Aegis
    Kleais
    The spacing between the text can be controlled via CSS.

  • Repalce comma with Space in Webi report.

    Hi Experts,
    My address Column in Webi report is showing data is like :
    Address (this is the field coming for BW)
    House No1,Flat J10,New Delhi,INDIA.
    Can we replace Comma with the space so that the ablove data would be like :
    House No1 Flat J10 New Delhi INDIA.
    Thanks.

    Hi Abdi
    Use the formula
    = Replace("House No1,Flat J10,New Delhi,INDIA";",";" ")
    then you will get
    House No1 Flat J10 New Delhi INDIA.
    Use the object in place of Text
    =Replace([Address];",";" ")
    Regards,
    Mahi

  • Calculated formula for replacing a comma with a Semicolon in a text field

    I need help replacing a comma with a Semicolon in a text field.
    I have a field that has names separated by commas.  
    Ex: Dog, Cat, Bird, Horse, Eagle, Worm, Snake
    I would like a calculated column that converts the field into: Dog; Cat; Bird; Horse; Eagle; Worm; Snake
    I figured out the first three positions (Dog, Cat, Bird,) but I can't figure out the rest.
    Using the formula below.
    =REPLACE((REPLACE((REPLACE([Title],SEARCH(",",[Title]),"1"," ; ")),SEARCH(",",(REPLACE([Title],SEARCH(",",[Title]),"1"," ; "))),"1"," ; ")),SEARCH(",",(REPLACE((REPLACE([Title],SEARCH(",",[Title]),"1","
    ; ")),SEARCH(",",(REPLACE([Title],SEARCH(",",[Title]),"1"," ; "))),"1"," ; "))),"1"," ; ")
    Please help

    check the similar post
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/66e2ae2a-4da9-4c58-a8bb-cf46b1bf448f/calculated-column-to-replace-commas?forum=sharepointgenerallegacy

  • [Perm] Find something, replace with nothing?

    I need to remove tags from a manuscript. In PageMaker I was able to search for:
    <A>
    and replace with:
    [nothing]
    This automated the process of deleting the extraneous text. However in InDesign, leaving the "Replace" field blank does not delete text. So there is seemingly no way to automated this deletion (in one step at least).
    Any suggestions would be appreciated.
    --Stephen

    Here you go. This script processes the selected story (either put your text cursor in the story or select one of its frames) and interprets PageMaker-like paragraph style tags.
    If you have no tags, the paragraphs will all be left with "No Paragraph Style" so don't run it against a previously processed story.
    If you don't tag a paragraph in the middle of the story, it will assume the style of the previous paragraph.
    The script creates styles on the fly if they don't already exist.
    If a paragraph starts with a "<" but has no ">" it's treated like a paragraph with no tag. Same for one that is tagged "<>".
    I've not exactly tested it thoroughly, but it looks as though it works.
    Warning: this version has a bug corrected two messages later.
    tell application "InDesign 2.0.1"
    set theStory to parent of selection
    if class of theStory is story then
      set theLim to count of paragraphs of theStory
      set theStyles to name of every paragraph style of document 1
      set curStyle to "[No paragraph style]"
      repeat with n from 1 to theLim
       set theChar to character 1 of paragraph n of theStory
       copy curStyle to theStyleName
       if theChar = "<" then
        set theText to contents of paragraph n of theStory
        set theOffset to (offset of ">" in theText)
        if theOffset > 2 then
         set theStyleName to characters 2 through (theOffset - 1) of theText as string
         if theStyleName is not in theStyles then
          tell document 1
           set newStyle to make paragraph style
          end tell
          set name of newStyle to theStyleName
          copy theStyleName to end of theStyles
         end if
         delete characters 1 through theOffset of paragraph n of theStory
        end if
       end if
       set applied paragraph style of paragraph n of theStory to paragraph style theStyleName of document 1
       copy theStyleName to curStyle
      end repeat
    end if
    end tell
    Dave

  • Replacing csv commas with tabs

    Has anyone come accross a command, preferably in vi to replace comma's seperated fields with tab delimited fields? I know about the substitution command but as people who work with csv files might know that fields of data with commas in them have quotation marks around them, I need to keep these commas in the file.

    Not sure if I understand this 100%
    But if I do, then this should work:
    `fixcsv.py inputfile outputfile`
    Things that are quoted because they contain a comma will no longer be quoted since thats no longer the delimiter (tab is). Also, you can uncomment the commented out line to have every field surrounded in quotes.
    #!/usr/bin/python
    #fixcsv.py
    import csv
    import sys
    reader = csv.reader(open(sys.argv[1], "rb"))
    writer = csv.writer(open(sys.argv[2], "wb"), delimiter='\t')
    #uncomment next line if you want everything quoted
    #writer = csv.writer(open(sys.argv[2], "wb"), delimiter='\t', quoting=csv.QUOTE_ALL)
    writer.writerows(reader)
    Be sure to backup your data just in case.
    Last edited by sabooky (2007-06-06 05:00:14)

  • Replace each third comma with ||

    Hi All,
    My Requirement is like this:
    In a column i need to replace every third comma(,) with || symbol.
    eg:
    1,Animesh,1234,2,Tripathi,4321,3,Oracle,2345.....(and so on)
    Desired output:
    1,Animesh,1234||2,Tripathi,4321||3,Oracle,2345....Please help me out.
    Regards
    Animesh
    Edited by: Animesh Tripathi on Dec 11, 2012 2:22 AM

    Animesh Tripathi wrote:
    Hi LPS,
    Sorry for duplicating the post.
    The reason i duplicated this is because, earlier i did not get any proper answer for this and I thought of replicating this
    to another community.
    AnimeshHi Animesh,
    you have posted again the same question to have again the same exact answer.
    I have answered you previously and you seemed also satisfied in this thread: {message:id=10739356}:
    Animesh Tripathi wrote:
    Hi Alberto,
    That was what i exactly wanted.
    Thanks for the Help.
    Regards
    AnimeshWhy are you saying you did not get a proper answer?
    Did you face any problem with previous solution?
    Regards.
    Al

  • My Macbook Pro was stolen, and I have replaced it with a Macbook Air. New hard drive is too small for a Time Machine restore. How do I restore my more-expensive apps (ie iWorks) on my new Macbook without repurchasing them?

    My Macbook Pro was recently stolen, and I have replaced it with a Macbook Air. I attempted to simply do a restore from the Macbook Pro's Time Machine backup, but since the new Macbook Air's hard drive is significantly smaller, a Time Machine restore was not possible. I even tried to choose only settings or only my User Profile (option) when restoring, but the backup was still too large to do a restore onto the new machine. How do I restore my more-expensive apps (ie iWorks) onto my new Macbook without repurchasing them? Also, I reaad somewhere that if you went to the Mac App Store and attempted to repurchase the app and clicked BUY, it would simply alert you that you have already purchased the app (and trigger a re-download)... NOT THE CASE... So I just dropped another $19.99 for a second copy of Pages... Not my intention....
    Any help would be greatly appreciated.
    LM

    you should get a usb backup drive as well.  time machine has limited use in my eyes. it saves things. but older things can be errased ad space drops without telling you
    nothing beats data redundancy.  2 saves is. 1.    and 1 is none
    im personally not fond of time machne though i use it only for a recovery parameter for a mac
    id never ever myself consider time machine a genuine data backup tool.  though most do consider it as such
    drive clones such as superduper and carbon copy cloner can clone your entire drive for emergency recovery.  and you can boot from them as well o. another mac

  • Replace Null With 0 in Pivot Table in a BI Publisher Report (Not OBIEE Answ

    I have a problem with nulls in a pivot table. I got a measure column in my BI Answers analysis and I made a report with a model based in this analysis. When I add a pivot table to my report the 0 measures don't display.
    In first place I found that there's a bug (13054445). I download and ran the patch, then I tried editing data format in my analysis column and in BI Answers and this worked. The 0 displays correctly, but in the report it's still not displaying.
    I tried editing the formula in the analysis with:
    IFNULL(column,0)
    CASE WHEN column IS NULL THEN 0 ELSE column END
    CASE WHEN column IS NOT NULL THEN column ELSE 0 END
    IFNULL(cast("column"as varchar (10)), '0')
    And nothing works
    When I tried this: CASE WHEN column IS NULL THEN 0 ELSE 656565656 END
    in the report the 6565656565 display correctly but the 0 still doesn't display.
    Does anybody know if that is a bug? Or does another option exist that can I try?

    Hi,
    Following on with this post, I followed the document posted and the formula worked fine. I was able to replace nulls with strikethrough in a pivot table. Since combining the report into a compound layout, the strikethrough has reverted back to nulls. Even when just viewing the pivot table, the same applies.
    I have double checked the column properties and the condition(is null) and formatting(strikethrough) still exists but does not take effect in the pivot table.
    I hav also checked that no data exists in the fact table under the null categories and they are true.
    Can anyone help with this problem, I have also removed the condition and re-applied but still face the same problem.
    Thanks

Maybe you are looking for