How to remove unwanted characters in ODI Flatfiles

Hi Experts,

Can someone please explain, how to remove unwanted characters from flat files before moving on to the target? Your help will be greatly appreciated. Thanks in advance.

Kind regards

REDA

On oracle staged you can use REGEX_REPLACE to get rid of special characters, for example

REGEXP_REPLACE (, "[^ [: alnum:]" "]', NULL")

or

REGEXP_REPLACE (, "[[: cntrl:]] ','") to get rid of nonprinting characters

In ODI 11.x you would put this in the field of the expression of the target model in your interface

The ODI 12, you would use a component of the expression in your mapping

Tags: Business Intelligence

Similar Questions

  • actively remove unwanted characters

    Hi, I am writing a function to actively remove unwanted characters from an input field. It will run each time a key event occurs on the selected input fields. It will remove the quotes and things like that. That's what I have so far...

    void test(){
        char unwantedCharSet[50]={"abcD"};
        char tempString2[200];
        int matchedCharIndex;
        GetCtrlVal (panelHandle[MAIN], MAIN_STRING,tempString);
        do{
            RemoveSurroundingWhiteSpace (tempString);
            matchedCharIndex = strcspn (tempString, unwantedCharSet);
            if(matchedCharIndex==strlen(tempString)){
                SetCtrlVal (panelHandle[MAIN], MAIN_STRING, tempString);
                return;
            }
            else{
                strncpy (tempString2, tempString, matchedCharIndex);
                CopyString (tempString, matchedCharIndex, tempString,matchedCharIndex+1,(strlen(tempString)-matchedCharIndex));
                strcat (tempString2, tempString);
            }
            sprintf(tempString,"%s",tempString2);
        } while(1);
    return;
    }
    

    It's still glitchy. Does anyone have advice to do this effectively?

    Thanks in advance!

    It was my solution, though, it takes a long time to perform. Someone has any advice on a better approach (more fast/cleaner)?

    /*=====================================================================*/
    //  TEST
    /*=====================================================================*/
    void test(){
        GetCtrlVal(panelHandle[MAIN],MAIN_STRING,tempString);
        SetCtrlVal(panelHandle[MAIN],MAIN_STRING,filter(tempString,unwantedCharSet));
    return;
    }
    /*=====================================================================*/
    //  FILTER
    /*=====================================================================*/
    char *filter(char *inputString,char *filterString){
        int ptr=0,matchedCharIndex=0;
        char outputString[100];
        do{
            matchedCharIndex = strcspn (inputString,filterString);
            if(matchedCharIndex!=strlen(tempString)){
                strcpy (outputString, inputString);
                for(ptr=matchedCharIndex;ptr<=strlen(inputString);ptr++){
                    outputString[ptr]=inputString[ptr+1];
                    DebugPrintf("%s\n",outputString);
                    if(outputString[ptr]=='\n'||outputString[ptr]=='\0')
                        break;
                }
                strcpy(inputString,outputString);
            }
            else
                return inputString;
        } while(1);
    return inputString;
    }
    
  • How to remove unwanted applications?

    How to remove unwanted applications?

    georgeintexas wrote:

    How to remove unwanted applications?

    Hello

    What is your device? You cannot delete certain built-in apps (which they how earn money), for other applications, normally use can try:

    • Tap Settings,
    • Touch applications
    • Touch the app you wish to uninstall
    • Touch uninstall

    Still, you can't uninstall a lot of apps.

    Kind regards.

  • How to remove unwanted contacts in my contacts list in Livemail

    Original title: removal of unwanted in livemail contacts.

    How to remove unwanted contacts in my contacts list in Livemail

    Right click on them, then choose Delete.

  • How to remove special characters that are not available in the key board

    Hi all
    How to remove special characters that are not available in the key board.
    select '106    ©      500049' str from dual;
    
    After removal of the special symbols ( not only copy right, it can be any special symbol other than key board symbols), I want to add a single space between two number.
    
    Output should be like:
    Str
    106 500049
    Thank you for your help in advance.
    select
     '106    © ® (k)      500049' str
    ,regexp_replace('106    © ® (k)     500049', '[^[:digit:]]+', ' ') r
    from dual
    
  • Removing unwanted characters.

    Dear friends,

    In our application, user to copy a document and pasting data into a field "comments".

    If this data is what either as bullets, arrows of the word document. Below is the insertion of the junk in the database as characters.

    a ¢ Analysys
    a ¢
    a ¢ now
    a ¢ when
    a ¢ as
    a ¢ us

    donâ t know how much he loves sthe testinga I'm not crazyha


    "' I'm a wear i ' i ' i ¨

    ¨ i

    i ¼ Uu
    i ¼ Yy
    i ¼ tt


    Now the user asking to remove all those unwanted characters in the comments column. Help, please!

    Published by: San Reddy on May 31, 2010 18:09

    Published by: San Reddy on May 31, 2010 18:18

    Try to use REGEXP_REPLACE(str,'[^[a-z,A-Z,0-9,[:space:]]]*','') you can watch the regular Expression and the include/exclude the character according to your wish.

  • How to remove unwanted plugins (and no I don't want to read all the articles unrelated who never answer your question)?

    I want to erase the unwanted plugins in Fire Fox. A plugin has even a warning about its use does not (Java Deployment Toolkit). But every time I ask 'how to remove a plugin?', I get redirected to an article that does not answer the question. And then the cycle starts again without ever actually answer the question.

    IT IS NECESSARY TO UNINSTALL FIREFOX TO DELETE A PLUGIN?

    Hello 4646tm, I understand your frustration. Here's how to remove a plugin:
    Click the menu and then click on Add ons, which looks like a piece of a puzzle.

        Type about:plugins into the Location bar and press Enter to display the About Plugins page.
       Each entry in the About Plugins page will have "File:" and "Path:", showing the name and location of the plugin file. Use Windows Explorer to navigate to the folder shown for the plugin you want to remove.
       Rename the file to add an X in front of the filename (for instance, npswf32 becomes Xnpswf32).
    

    You said that you do not want links, but I'll give you a couple just in case you do not want to uninstall the plugins manually. These links are to pages that tell you how to run the uninstall it please do not hesitate to tell me if you think that they are not useful.

    Uninstall Adobe Flash - Windows

    Uninstall QuickTime - Windows Vista/7

    Follow the instructions:
    Download Microsoft Silverlight (instructions to uninstall also)

    I just put a couple of the most common out there, if you have a specific plugin you don't want it please tell me and I can dig to the top of the page for it, also you can do manual uninstall I gave you.

    Have a great day!

    Jon

  • How to remove unwanted channel

    Hello

    I would like to know how to remove the unwanted channel?

    For example at my witness, I received

    **

    then only I get the second line

    01:24:30 23.10.15 0000.21 00 01 000.000 02 03 of 00000 00000.0 04 - 05 - 06 034.063 0516.03<-20 ur=""  ="" 07="">

    I would like to know how to remove the **

    Good... While you use the string works correctly If this is how your bed from the port channel series, but I am wary of the configuration of your VISA. Read the number of bytes as being equal to the speed of transmission is bogus. Look at your communication of the device and know exactly how many bytes at a time, you should be reading, or use the time-out period. My guess is that when you run your code at the moment, he sits for 10 seconds each loop before spitting a string.

    Is your original question was answered/resolved? Do you understand how to remove an unwanted chain?

  • How to remove special characters from the string using translate() without typing all special characters?

    Hi all

    I am trying to remove special characters without the help of regular expressions.

    translate (the column name or string,'!@#$ & * (* () _) * "" :} {?}) >? /, «, » ')

    I want to eliminate this manual process to give all special characters using a chr() or ascii() function.

    Please show me the way.

    Thanks in advance

    Similar to the solution of Michael...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, i like (select level 1 c from dual connect by level<=>
    3 less
    4 Select + 32 (level-1) double connect by level<=>
    5 less
    6 select + 58 (level-1) double connect by level<=>
    7 less
    8 select + 91 (level-1) double connect by level<=>
    9 less
    10. Select 123 + (level-1) from dual connect by level<=>
    11 less
    12. Select 255 double
    13            )
    14, ts as (select level r, substr (str, level 1) c
    15 t
    16 connect by level<=>
    17             )
    18, tf as (select row_number() (order for r) r
    19                    ,ts.c
    20 TS
    21 I join on (i.c = ascii (ts.c))
    22             )
    23 select replace (sys_connect_by_path(c,'!'),'! ') Str
    24 TF
    25 where connect_by_isleaf = 1
    26 connect r = prior r + 1
    27 * start with r = 1
    SQL > /.

    STR
    -----------------------------------------------------------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

    Or something as horrible as this...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, I like (select replace (sys_connect_by_path (chr (c), 'A'), 'A') as tr)
    3 of)
    4 select c, rownum r
    5 (select 32 + (level-1) as the double connection by level c<=>
    6                         union
    7 select + 58 (level-1) double connect by level<=>
    8                         union
    9 select + 91 (level-1) double connect by level<=>
    10 the union
    11. Select 123 + (level-1) from dual connect by level<=>
    12 union
    13. Select 255 double
    14 tri 1
    15                        )
    16                  )
    17 where connect_by_isleaf = 1
    18 log r = prior r + 1
    19 start with r = 1
    20            )
    21 select translate (str, 'A' |) TR, 'A') as str
    22 * t, I
    SQL > /.

    STR
    --------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

  • HOW TO REMOVE UNWANTED MENU OF LAUNCH PAD ICON

    HAVE ICONS UNWANTED IN THE LAUNCH PAD MENU AND WANT TO DELETE/REMOVE.

    ANYONE KNOW HOW?

    THANK YOU IN ADVANCE...

    Launch pad displays all installed applications. If you want to remove, go to the Applications folder and delete the offending application.

  • How to remove unwanted items from the Task Manager

    WHILE IN A HURRY TO DOWNLOAD FLASH PLAYER INADVERTENTLY, I DOWNLOADED THE UNDESIRABLE ELEMENTS (DUCTING, PLUG INS, ETC.)) THAT

    DO NOT APPEAR IN MY REGISTRY, BUT SHOW UP ON MY TASK MANAGER. HOW CAN I REMOVE THEM? ANY HELP WOULD BE
    APPRECIATED.

    Hi Charles,

    -What version of Windows you are using on the computer?

    You can uninstall unwanted applications in Uninstall or change a program in Control Panel. Check out the link:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    See also for Windows XP: http://support.microsoft.com/kb/307895

    Response with more information to help you.

  • How to remove unwanted files from the local root folder of the site?

    Hello

    I work with Dreamweaver CS4 on a Windows PC. I have finished my site but I have a lot of files in my local root folder that I don't want to upload to the server. These unwanted files are for most of the photos that I should not be used in my site. I do not understand how to download the site on the server using ftp and remote folder in Dreamweaver. I suppose that if I move the page html files to the remote folder that my photos will not be associated with these html files automatically. I used a Dreamweaver template during the construction of the site. I wish I had a folder with only the necessary files for the site (all html pages and a folder of images) to upload to the server. Is there an easy way to move all my pages and images associated with a folder or remove all unwanted files in the local root folder? As I see it now, I'll have to go through all my pages and write down each title of the photo and then go back and delete each unwanted file. This seems a lot of your time, so I thought that there must be an easier way, I hope.

    Any help or ideas will be of course very appreciated, thanks, dluthier

    I guess you mean 'work' files, not the images that you use in your Web site.

    If they are not related to all pages of your site, you are free to move by using your computer's file management tools. I can give you specific instructions, if you wish, but the short of it is that you do not keep them in the folder root of your site at all.

    In my way of working, I have a folder for each client that includes:

    • The correspondence of this client folder
    • Folder to 'Work'... the PNG images, etc., or of the images from the client
    • Record the site root

    When I get e-mail, I save the message in the appropriate folder of correspondence, I save the images etc in the folder of 'Work' to the customer and I only save images and other who have already been optimized in the Site folder, keep it as intact as possible.

    Even if the general warning must always use the files Panel to move files around, that applies to files which are linked and form part of the structure of your Site. Moving your files 'work' outside of the structure can be carried out safely in windows explore your PC.

    That said, if you need to download and there are files you want to download, or to move, you can 'hide' the in the files Panel by right-clicking on the file name and choosing 'Cloaking '.... "in the context menu that appears.

    To the point that the image files that are downloaded to the remote site will not 'automatically' be associated with your html files. That is right. Unless you have configured explicitly links or associations between files, images will not associate themselves!

    On the subject of 'automatic' way to do this, you can make a link to check on all of your local site. Window > results > Link Checker will bring up the appropriate window, which will give you the choice: broken links, external links and orphan files (this is the one you want). Use the green triangle tower at the left end of the Link Checker to set your auditor... Current Local Document or a set current site.

    If you want to make a checklist to ensure that you move them all, you can save the report by clicking on the small icon "Floppy" under the Green turn the triangle. Who will be on a file text and make up a dialog that you save the report, which will show the broken links, external links and orphaned files. After you move the files to your heart's content, rerun the link check and confirm that you moved the files you want to move. Make sure that you DON'T move files consciously... do not move the .htaccess files or .cgi files, etc.

    Who will save you from actually having to 'write' file names!

    Z

  • How to remove unwanted address lists

    I tried to remove the unwanted address without success books. A "right click on delete" is never available in all areas. -

    Address book > choose the right address, expand it. Right click on the tag and delete it.

    Check the attachment

  • How to remove unwanted email addresses that arise as first letter is entered.

    I have three e-mail addresses that all of them begin with the letter L. I did too in the past of errors when entering my email addresses and had to delete the e-mail address of Bungle and start again. Now, when I enter my e-mail address box the letter L, not only my 3 authentic email addresses appear (which is great) but also the mistakes that I made in the past. How can I remove e-mail addresses that have been my erroneous listings.
    For example once I had just walked in the letter l, and then inadvertently clicked on the sign in button and the only letter that appears now as a full address as soon as I get the letter L. A case more that I opened a new email address that I decided to keep it for friends and family only, address consisted of letter and numbers. The first time I tried to open the new address, I entered the wrong number by mistake, I couldn't in the page e-mail obviously but every time that I get the letter L the wrong address that I entered comes also as a possible address.
    I think that the functionality is excellent, but I would like to know how to get rid of e-mail addresses made by mistake.

    • Click on the (empty) input field on the web page to open the drop-down list
    • Select an entry in the drop-down list
    • Press the DELETE key (on a Mac: shift + delete) to remove it.
  • How to remove unwanted specific nonfirefox of toolbars - I can't do it via the start menu?

    I deleted programs as much as I can and cookies. I am trying to remove the store home Tools toolbar. I followed the instructions to remove in the menu 'Start' and 'Add or remove programs ". the shop at home program was not there. Please tell me what to do or not do.

    Shop at home

    #1 - ADDED EDIT: I just found the reference to the toolbar ShopAtHome, also named "Toolbar of Shopping smart"; that search in Control Panel > Add / Remove programs and then click on to remove/uninstall. Make sure Firefox is closed prior to the abduction, if it is there

    EDIT #2 - ADDED: I saw where there may be a file named SelectRebatesUninstall.exe on your computer in the location c:\program files\SelectRebates\. If you find, click/double click on the file and let me know the results.

    Have you looked into C:\Program Files for one or more folders named shop at home and/or select refunds and/or the Smart Shopping toolbar? If one (or both) are / are there, close Firefox (Firefox button > exit OR File > Exit), open the folder and look for a file named uninstall.exeand click/double click on this file uninstall.exe . Let me know your results.

    As I said, it is difficult to diagnose a problem remotely. We will continue to try to solve this problem.

    Delete bookmarks

    Read the following article to know how to delete bookmarks:

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

Maybe you are looking for

  • Change file names

    I have some videos imported Photos.  I put titles for videos, but when I click and drag them to my office, he still has generic file names (i.e. IMG_0013.m4v).  Is there a way to change the file names of videos and photos from photos? When I click on

  • Ejecting disc still giving trouble.

    After the last update to El Capitan I always feel the same problem with my back disc ejected at random, even if she did not appear with the same frequency. I thought it had been fixed after a few days everything was good but then it happened, and did

  • When I switch to 10.6.8 mountain lion will I lose iphoto and imovie ms word?

    IM in the process of downloading for my MacBook mountain lion and I wonder if I will still be able to use iMovie, iPhoto and Microsoft Word once I installed it.  If it isn't in any way I can keep these?  I have a knowledge of basic computer.  By supp

  • Windows Mail - Message is not found

    Hello I just did a system restore on Vista PC of my friend. I've restored all his personnel records from the before done backup and import export mail messages. Everything seems to be okay, but there were a few files imported with different names. We

  • Windows Installer service could not be accessed - error in Windows 7

    Ladies and gentlemen, Currently, I get the following error when I try to install any program in the system: "The Windows Installer Service could not be accessed. This can occur if Windows Installer is not installed properly. Contact your support team