Multiple Formats in Single File

Hi,
Can i extract data from Multiple delimiters type in a single text file. Such as
CUS0000001,Manish Paliwal,9818689349,25
CUS0000002,Manish Paliwal,9818689349,25
CUS0000003,Manish Paliwal,9818689349,25
CUS0000004,Manish Paliwal,9818689349,25
CUS0000005,Manish Paliwal,9818689349,25
CUS0000006,Manish Paliwal,9818689349,25
CUS0000007,Manish Paliwal,9818689349,25
CUS0000008,Manish Paliwal,9818689349,25
CUS0000009,Manish Paliwal,9818689349,25
CUS0000010,Manish Paliwal,9818689349,25
CUS0000011,Manish Paliwal,9818689349,25
CUS0000012,Manish Paliwal,9818689349,25
CUS0000013     Manish Paliwal     9818689349     25
CUS0000014     Manish Paliwal     9818689349     25
CUS0000015     Manish Paliwal     9818689349     25
CUS0000016     Manish Paliwal     9818689349     25
CUS0000017     Manish Paliwal     9818689349     25
CUS0000018     Manish Paliwal     9818689349     25
CUS0000019     Manish Paliwal     9818689349     25
CUS0000020     Manish Paliwal     9818689349     25
CUS0000021     Manish Paliwal     9818689349     25
CUS0000022     Manish Paliwal     9818689349     25
CUS0000023     Manish Paliwal     9818689349     25
CUS0000024     Manish Paliwal     9818689349     25
Above i given a file, which have 2 kinds of delmiters. Can i extract data from these kind of files in ODI.

RECORD CODES in column definition are used to differentiate between different record types that are put in a same file.
The premise here is that the file contains records of different record types and a field in the file identifies the record type. eg. A file contains 2 record types with different formats.
A,101,'CMP', 'IDV
A,102,'CMP', 'IDV
B,1001,'GFRV_OCCD', 'GFRV_ID', 'IDVA, 121 ,'CMP', 'IDV'
A,101,'CMP', 'IDV
B,2001,'FRV_OGCCD', 'GFRV_ID', 'IDVA, 121 ,'CMP', 'IDV'
A,101,'CMP', 'IDVHere the first field identifies the record type - A or B. So, in the ODI data store, you use A or B in the record code field of the column definition of the data-store.
ODI automatically, gets the records matching the record code specified in the definition of the data-store.
So, you will create 2 data-stores, one with record code = A (4 columns) and other with record code = B (8 columns)
Hope that helps.

Similar Messages

  • Scanning multiple pages to single file

    I have the HP Officejet Pro 8600.  I use to be able to scan multiple pages to one file.  For some reason now it separates the pages into single files.  Under advanced settings it looks like the option "create a separate file for each scanned page" is checked, however, it is not highlighted so I can't change it or uncheck it. 

    KB-Sales,
    Welcome to the HP Forum.
    Assuming a recent Windows Operating System and that you install the Full Feature Software (printer software), then you may use the Printer Assistant shortcut to access Scan Document or Photo.
    From there, you may be able to use / create a Scan Template to combine files to output to a final, single file.
    The following Dragon Document may help:
    Scan_Multiple_Documents-Combine
    Note the hint about creating your own Shortcut / Template in the instructions.
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • Log messages from multiple instances in single file.

    Hi!
    I have a requirement that i need to log messages from muliple instances of the same object in a file. The new file will be created every day. Likewise, multiple objects might have various instances each.
    One class
    ->multiple instances
    -> log message stored in single file.
    Note :
    I am using the Message driven bean. I need to log from the bean class. JDK 1.3
    If u could help me out that would be great.

    As long as they are all from the same OS program (a single Java VM), that's OK - you can use Log4j, and use a rotating file logger.
    If you point two different virtual machine processes at the same file, one may have it open when the other is trying to rotate it, and your rotation may fail (at best) and/or you may lose the old log (the worst case).
    If you need to collect log messages from multiple processes (or even multiple machines), use a syslog-based logger (Log4j has a SyslogAppender) or use Log4j's SocketAppender to write to a log4j-builtin log listener (SocketNode).

  • Multiple IDocs-XI-Single File Scenario

    Hi All,
       We need to send multiple IDocs from R/3 to XI and then to a single file using File Adapter. Please help us with your suggestions on how to proceed using a simple solution.
    Regards,
    Peter

    I made a program that solved the issue of collecting the IDOC in to one file.
    1.  The partent profile should be setup for collect idocs
    2.  Make a report that will select and dispatch the idocs
    seudo code:
    select tables with select criteria:
    edidc (idoc control)
    edid4 (idoc data)
    one yo have made you selection into internal tables
    it_final_edidc
    it_final_edid4
    *you can apply rules and data tranformations, eg. PEXR2002 batch per payment type.
    CALL FUNCTION 'EDI_OUTPUT_NEW'
               EXPORTING
                    onl_option  = 'B'
                ERROR_FLAG  = ' '
                NAST_RECORD =
               TABLES
                    i_edidc     = it_final_edidc
                    i_edidd     = it_final_edid4
               EXCEPTIONS
                    OTHERS      = 1.
      " EDI mesages dispatched
      IF sy-subrc EQ 0.
        COMMIT WORK.
        CALL FUNCTION 'DEQUEUE_ALL'
           EXPORTING
                _SYNCHRON = ' '
             EXCEPTIONS
                  OTHERS    = 1.
    That work like a charm when writting the IDOC to a single file.
    But when I send the IDOCS to XI like XML-IDOC I still receive one transaction per IDOC.
    if anyone know how to solve that, let me know.
    juan

  • Accessing multiple directories using single file adapter

    Hi All,
              I have data coming from two banks. I need to put them in SAP file server. Now i have two sender adapters for each bank, now is there a way i can use same receiver adapter but create diff directories to store them.
    XIer

    Hi,
    In file sender communication channel there is a check box for Advanced Selection for Source file. Check that and you dont put anything in exclusion which means it takes all the files from multiple direcotires. Please check this weblog where he has excluded some files in the directory. But you dont need to exclude anything.
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    Regards,
    ---Satish

  • FlatFile import with multiple formats to single table

    I need to import a Flatfile which can have varying number of columns eg row1 7 x cols, row2 15 x columns, row3 12 x columns.
    The file needs to be added to a single table.
    Any thoughts on best way to approach this. 

    What version of SSIS are you using? If you're using 2012 or later, you can most likely do this in the data flow without scripting.
    You'll configure your flat file source with the maximum number of columns you'll expect in any data row, and each column's data type would need to be configured to accommodate the largest/widest value expected in any row for that column. In SSIS 2012 or
    2014, the flat file source will interpret any missing columns as NULLs. Then just load the output of the flat file source to your destination table with the appropriate mappings. Any missing values will be NULL.
    The behavior was different in SSIS 2005 and 2008. If you had fewer than expected columns in any row, the flat file source would continue to read data from the file until it got all of the columns it expected - even if that meant reading data from the next
    line of text. For those versions, scripting the source was the easier solution.
    Tim Mitchell | TimMitchell.net | @tim_mitchell

  • Multiple FileChannels on a Single File

    I wonder if anyone could help on this please: is it possible to have multiple filechannels on single file, basically I have a RandomAccessFile where I got my FileChannel from , any attempt for a getChannel on this RandomAccessFile object always return a unique FileChannel same as the previous one. is there anyway to get deferent FileChannels ? or may be any other way to get around this?

    Thanks Alan, for the replay, but actually I do not want to open the file many times, if I would to use what you have suggested: " FileChannel fc1 = new RandomAccessFile(f, "rw").getChannel();
    FileChannel fc2 = new RandomAccessFile(f, "rw").getChannel();"
    then this will open the file "f" many times.
    my question is : I would like to open the file once by " RandomAccessFile raf = new RandomAcessFile(f, "rw")" and then how could I get multiple channels on this raf ?
    any time I call raf.getChannel() it return a unique FileChannel object, say:
    FileChannel fic1 = raf.getChannel(); FileChannel fic2 = raf.getChannel();
    fic1 and fic2 are eventually the same, so any attempt to manipulate fic1 would affect fic2; say the cursor position and so on.

  • How  to  manage  multiple  formats  in   a   single file ,

    hi ,
    I 'm getting multiple format files from my source..
    how to tackle this scenario in ODI ,
    Plz reply me and thanks in advance.

    RECORD CODES in column definition are used to differentiate between different record types that are put in a same file.
    The premise here is that the file contains records of different record types and a field in the file identifies the record type. eg. A file contains 2 record types with different formats.
    A,101,'CMP', 'IDV
    A,102,'CMP', 'IDV
    B,1001,'GFRV_OCCD', 'GFRV_ID', 'IDVA, 121 ,'CMP', 'IDV'
    A,101,'CMP', 'IDV
    B,2001,'FRV_OGCCD', 'GFRV_ID', 'IDVA, 121 ,'CMP', 'IDV'
    A,101,'CMP', 'IDVHere the first field identifies the record type - A or B. So, in the ODI data store, you use A or B in the record code field of the column definition of the data-store.
    ODI automatically, gets the records matching the record code specified in the definition of the data-store.
    So, you will create 2 data-stores, one with record code = A (4 columns) and other with record code = B (8 columns)
    Hope that helps.

  • How do I upload a file to icloud in multiple formats?

    I have noticed that when I upload a file to the iWork app of iCloud and I wish to download it, it provides me with a drop down list multiple formats (i.e. Pages, PDF or Word) however only one option (the file type I uploaded it is availible). I wish to upload a single file in multiple formats for example I want to be able to download that file in Pages and Word formats. Currently I have to resort to uploading two separate files, one Word, one Pages but that results in a lot of clutter. Is there any way I can have a file availible to download in both formats all underneath the same icon?

    Documents added from a Mac need opening on an iOS device, in order for them to be able to be downloaded again, in any of the 3 formats.

  • Search multiple folders and muiltiple files and combine to single file

     I want to search multiple folders for muliple files and combine to single file name. The files I'm searching have same format, but where named
    differently in each of there processes. Now I want to combine based upon -SearchFor .. I'm having a problem with -Filter $SearchFor
    Code:
    Function Search-Files{
    Param([String[]]$Locations,[String[]]$SearchFor, $AppendTo)
    Begin
    If(-Not (Test-Path $AppendTo)){New-Item $AppendTo -ItemType File -Force}
    Process
    ForEach($Location in $Locations)
    $Files = Get-ChildItem -Path $Location -Filter $SearchFor -Recurse
    ForEach($File in $Files)
    Get-Content -Path $FIles.FullName | Out-File $AppendTo -Append
    End{}
    Search-Files -Locations "\\servera\public\t1\usa\saleshist\","\\serverb\public\t2\usa\saleshist\",-SearchFor "dodetail-cm.txt","somstr.txt",-AppendTo "\\virt1\Saleshist_data_load_files\saleshdr.load.csv"

    I think you might want to use -Include instead of -Filter.  Your -Include parameter accepts wildcards, i.e. *.docx or *somstr.txt
    Your command to actually append the content should be:
    Get-Content -Path $File.FullName | Out-File $AppendTo -Append
    You had $Files.FullName which might behave unexpectedly, if at all.
    Your actual command has several issues.
    Search-Files -Locations "\\servera\public\t1\usa\saleshist\","\\serverb\public\t2\usa\saleshist\" -SearchFor "dodetail-cm.txt","somstr.txt" -AppendTo "\\virt1\Saleshist_data_load_files\saleshdr.load.csv"
    You had commas following the lists of locations and searchfor terms, did that even work? Without seeing your source files or your target file I can only advise you so much, but ideally you would import-csv and export-csv.  Depending on the contents,
    you may be able to get away with get-content and out-file though.
    I hope this post has helped!

  • Multiple files in different directory using single FILE adaptor

    Hi Guys,
    How can we handle multiple files having different format(PDF,TXT,EXCEL) and in different directory with the single FILE adaptor.
    I know by using "." we ca get mutilple files, but here tthe files are of different format and in different directory.
    Could you please explain as to how we can handle this scenarios?
    Thanks
    Sahil

    Hi,
    The short answer is - "No".
    The Long Question - "Why do you want to use a SINGLE channel".
    If your idea is to reuse the interface then dont worry... Except for the Senderchannel and Sender agreement all your other objects can be reused ...provided your sender apter converts the different files into the same XML format..
    For TXT you can use the simple file adpater..
    For excel see if you can use save the file as .CSV format...then you can use it directlky by the simple FIle adapter..
    For PDF use conversion agent... Here a blog to get u started on that ->
    /people/shabarish.vijayakumar/blog/2009/05/17/trouble-writing-out-a-pdf-in-xipi
    regards
    Arvind R

  • DME - Multiple Vendors in single DME file not appearing

    Hi there,
    I have created a DME structure  and created PMW format , as required by bank, to generate DME text file.
    When i run the APP (F110) for single vendor ,,  one DME text file is generating correctly,
    Now problem is when i run F110 for    multiple vendors ,,    still only one DME file is generating for only one vendor.
    Nither all vendors are apearing in single DME text file ,, nor ,,  multiple DME files are generating for the multiple vendors. ,,,, while payments are made correctly for all vendors.
    In the Data Medium Administrator (T.Code FDTA) system is showing in the DATA medium data ,,, total  amount paid as a total of all vendors ,, but when i view of that data in DME text file it shows only the single vendor data.
    The setting for ,, multiple DME files for multiple vendors   or  single DME file for multiple vendors ,,,, are available in the OBPM4  and  this setting is working for standard DME formats like MT100 correctly as i checked ,,,,  but  this setting is not working for my own created DME format.
    Please give your valuable suggesions.
    Thank you.
    Best Regards,
    Rony

    Dear Rony,
    I am facing the same problem, have u got the sollution. if u resoled please let me know.
    requesting you
    Thanks&Regards
    Srini

  • Single file to multiple IDOC's (on Multiple R3 Clients):

    Hi,
    We have a complex Landscape with multiple (4) businesses (multiple R3) instances and most common R3 --> DEV 4 instances with 5 clients each, QAS 4 instances with 2 clients each with some additional clients, PRD 4 instances with a client each and Training 4 instances with 2 clients each in the Landscape along with BW systems.
    We are trying to implement standard MDM - XI - R3 distribution scenario. Only difference being MDM Production will be the Master distribution client and have to be distributing to all the R3 clients. For those who doesn't know SAP MDM - is Master Data Management Engine and within this scenario the output from MDM is standard XML IDOC file.
    To achieve this syndication is being planned as MDM production to distribute files to 4 businesses to 4 file share folders. These files will be picked up by XI production and will be distributing(Creating IDOCs) on multiple receivers (R3 --> DEV, QAS and PRD) clients of the respective instances.
    The one to one scenario is very simple to build MDM XML file from file adapter to R3 IDOC of IDOC adapter, but for our business it becomes one file to multiple R3 clients (IDOCs) on multiple R3 instances;
    My question is: Is there an easy way to configure single file to mutiple R3 client IDOC receivers scenario? Also there might be additions and deletions of the R3 clients based on business requirements. Is there any proposed or already implemented procedure to achieve this complex distribution?
    We have planned on trying to define a business system for each R3 client (DEV/QAS/PRD) and to have the integration directories configuration built for all the 47 clients that the data needs to be distributed. With IDOC Adapter is this the only way to go? Also, in future if there are additions or deletions of clients it becomes maintenance intensive and there won't be a quick way to stop the distribution?
    Your time and input is appreciated.
    Thanks and Regards,
    -Raj.

    Michal,
    Thanks for your answer and FAQ.
    I think I am confusing everyone with my long messages!
    We already have XI DEV, XI QAS, XI PRD.
    But business requirement for the global harmonization MDM scenario is that MDM PRD should be able to distribute the XML files (IDOC fields in GLMAST01 - IDOC format) to all the DEV, QAS and PRD (R3) systems in the landscape. For this distribution XI is used as the integration partner (File adapter picks up the XML file from MDM file share location and IDOC adapter creates an IDOC on the respective R3).
    For this specific scenario though XI-DEV and XI-QAS systems are present they are available only for testing phase. After the scenario is moved into production, XI-PRD should be able to pick up the XML file from MDM and distribute it to all the DEV, QAS, PRD R3 systems.
    Same file needs to be distributed to 20 DEV clients across 4 DEV instances, 27 QAS clients across 4 QAS instances and 12 PRD/TRN(training clients).
    Yes, as you said in your answer earlier deleting a client from the distribution is removing the client from the receiver determination (and removal of corresponding Interface determination, sender agreement and receiver agreement).
    Addition of a client for distribution is adding the client (business system) in receiver determination (and addition of of corresponding Interface determination, sender agreement and receiver agreement).
    Do I have to maintain all the 59 (Clients from different systems) sets of config within the ID and all the systems in SLD of XI - DEV/QAS/PRD? Even if I do so, Is this the right way to go, defining all the DEV/QAS/PRD clients within all the SLD's of XI -  DEV/QAS/PRD?
    I am not finding an easy way to architect this.
    I appreciate your time and patience.
    Thanks and regards,
    Rajani Kanth Yalamanchili.

  • Create single file to play multiple mpegs - os x?

    My Hitachi camcorder creates mpeg 2's - which I can play on the Mac (OS X - latest version) using the Mpeg 2 playback component. However it also creates the handy "playall" file which does just that. Any ideas on how to create one of these files or something that'll do the same thing? OS X doesn't play the playall file.
    Thank you.

    My Hitachi camcorder creates mpeg 2's - which I can play on the Mac (OS X - latest version) using the Mpeg 2 playback component. However it also creates the handy "playall" file which does just that. Any ideas on how to create one of these files or something that'll do the same thing? OS X doesn't play the playall file.You can try loading the files into MPEG Streamclip as a set of multiple files, fix timecode breaks, and try using the "Save as..." option to create a single file. However, be advised that "muxed" MPEG-2 file containers have a size limitation which is supported by QT. So, since you already have the QT MPEG-2 component installed, you may also wish to consider converting your "combined" movie to a fully compatible QT compression format which is not constrained by such limitations.

  • Hp 6700 option to scan to single file or multiple files does not work-scans to single files only

    Cannot find a way  to scan multiple documents to a single file.  The option on the Scan function does not work!

    Hi @apdamw 
    Have you tried saving the scanned pages as a PDF? When you choose PDF in the format option, you will see the option to choose save all pages to a single file, or create a seperate file for each scanned page. Depending on what option you see, you will need to tick or untick the option.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

Maybe you are looking for