Compare files in different formats but same order

Java Developers,
I have a serious problem here "Comparing two files"... in Java.
We recieve 2 emails which talk about the same thing but not in the same format. one comes from my company and the other email comes from partner company. These 2 companies have their own standards and their own codes. so their emails do not match exactly.
I should check whether the contents of these 2 files are same or not. Line by Line they r not at all same, entirely different formats as I mentioned earlier. but somewhere in between there will be same headers for eg: "Service Details" section . once u see that word in both the files then compare the fields under that section, check whether they r same or not. here also the fields are not the same, one says AB and another says '12' , I shud check whether they mean the same thing or not. We have a dictionary and a table which says AB ='12', Everyday we get around 200 sets of such matching emails. how to read them, how to process them and how to see whether they match or not.

Also look at the java.util.regex package.
Beyond that, "How do I write a program that does <complex requirements statement>?" is not an appropriate question for these forums. If you're totally stuck and don't know where to begin on that, then you're probably not qualified to do it. That's not intended as an insult, just a reality check.

Similar Messages

  • Save one file in different formats at once.

    Hello,
    I am a illustrator who needs to save files in different formats. Like 1 with a watermark, one small one for the website, another one for shop, a pdf file for the prints, etc. Is there a way to do all those things at once? Cause it really takes a lot of time.
    I make my illustrations in photoshop, but if it's nessecary to only do those thing in another adobe programm, than that's no problem.
    Please help, thank a lot!
    Renske

    Or try Image Processor Pro:
    http://blogs.adobe.com/jnack/2011/05/new-image-processor-pro-script-for-cs5.html

  • Download file in different formats(its urgent)

    Hi experts,
    I have a problem when downlaod a file in different formats.
    File should be downloaded 3 Formats.
    1. DWG
    2. DXF
    3. PDF
    this file is used for CAD Drawings.
    So i required a Functional Modules to generate a file in 3 different formats.

    Hi,
    You can download an internal table data (of report format) into PDF
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    * BIN_FILESIZE =
    filename = i_pfad
    filetype = 'BIN'
    * IMPORTING
    * FILELENGTH =
    TABLES
    data_tab = i_att_cont
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    OTHERS = 5.
    But DWG DXF are third party specific, i think in SAP we don't have functional modules to download in these
    aRs
    Points are always welcome

  • I have an iPhone 4 and 5 with 2 different numbers but same Apple ID and I can't set up voicemail on the 5

    i have 2 iPhones with 2 different numbers but same Apple ID, why can't I set up voicemail on one phone

    Visual voicemail is a carrier feature, contact your cell phone provider and see if it is set up for you to use.

  • SSIS project - read multiple flat files with different formats

    hi all,
    i need to import multiple flat files with different formats into different tables of the sql server database and not able to figure out the best way out in ssis to do so...
    please advise the possible methods in ssis to do so and if possible the process which can be dynamic as file names or columns might change in future.

    Hi AK1987,
    To import flat files with dynamic columns, we can use Script Task inside a Foreach Loop Container to parse the first row of the flat file to get the columns names and save them into a .NET variable, then, we can create “Create Table” script based on this
    variable, and then store the script into a SSIS package variable. After that, we create a staging table based on the package variable, load the flat file data to the staging table. Eventually, we load data from the staging table to the destination table. For
    the detail steps, please walk through the following blog:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • HT201272 If i re-download music i once downloaded with a different iphone, but same apple ID will it charge me again?

    If i re-download music i once downloaded with a different iphone, but same apple ID will it charge me again?

    As long as the items are still available in your purchase history, no.
    Message was edited by: Michael Allbritton

  • XML file with different format

    Hello
       I have a requirement where the customer needs XML file with different format.  How do I achieve the second format mentioned below instead of first format.
    Normally we create the XML file in the following format:
    - <Entries>
        - <Organization>
            <MemberName>0000000002</MemberName>
            <FullName>BAY GYNECOLOGICAL ASSOCIATES</FullName>
            <OrgId>0000000002</OrgId>
            <OrgType>CUST</OrgType>
       - <AssociatedToOrg>
            <Name>0002</Name>
       - </AssociatedToOrg>
      </Organization>
    Now the customer wants like the following format:
    <Organization MemberName="522_Community_Customer" FullName="522 Community Customer" OrgId="DEA123456" OrgIdType="DEA" >
          <AssociatedToOrg Name="MN"/>
        </Organization>
    Thanks
    Naga

    you can solve it with a XSL mapping. refer to the SDN to know how develop it
    /people/aleksey.popov2/blog/2010/01/26/consuming-webservices-with-tag-in-wsdl-using-xslt
    XSLT Editor for creating xlst mappings
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    http://wiki.sdn.sap.com/wiki/display/XI/XSLTMappingSteps
    http://wiki.sdn.sap.com/wiki/display/XI/FileTOFile-UsingXSLTmapping%28forBeginners%29
    http://wiki.sdn.sap.com/wiki/display/Snippets/ConvertflatXMLfiletonestedusing+XSLT
    http://wiki.sdn.sap.com/wiki/display/Java/MultiMappingwithJavaandXSLTmappings
    Edited by: Rodrigo Alejandro Pertierra on Oct 1, 2010 5:26 PM

  • How can I create files in unicode format without "byte order mark"?

    Hello together,
    I have to export files in UTF-8 format and have to send them to another partner system which works with linux as operating system.
    I have tried the different possibities to create files with ABAP. But nothing works 100% how I want.
    Some examples:
    1.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    If I create a file in this way and download it from application server to local system the result for file format in a unicode text edior like NotePad is "ANSI AS UTF-8". This means I have no BYTE ORDER MARK inside.
    But it is also possible that the file format is only ANSI if the file contains no "special characters", isn't it?
    In my test cases I create 3 files. 2 of them has format "ANSI AS UTF-8", and one only "ANSII".
    After transfer to Linux I get as result 2 times UTF8 and one time ASCII as file format.
    2.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8 WITH BYTE ORDER MARK.
    With this syntax the result in local editor looks like ok. I get as format really "UTF-8".
    But I get problems with the system which receives the files.
    All files has the file format UTF-8 on Linux but the interface / script can not read the file with BYTE ORDER MARK.
    This is a very big problem for me.
    Do anybody of you know if it possible to force creation in UTF-8 without a BYTE ORDER MARK?
    This means more or less the first example but all files should have UTF-8 format!
    Thanks in advance
    Christian

    This means it is not possible to create a pure unicode file without the byte order mark?
    You wouldn't happen to know how a file with byte order mark should read on a Linux system?
    Or if this possible or not?
    Regards
    Christian

  • Ldt files for different templates have same data

    i was asked to get .ldt files for different templates. I used FNDLOAD to download the files using xdotmpl.lct file. all the .ldt file when open in text has the same data. Am I doing something wrong. If the files are same why do we need seperate .ldt file for each template.

    But if you developing something and you are going to version it, then
    In case of single LDT
    ==================
    Its easy as you said, we can down load all def into one file.
    But, if one of the template def. got changed, all data gets downloaded unnecessarily .
    Single file , so you can say its easy .
    In case of multiple LDT
    ==================
    But, if one of the template def. got changed, then download that one only into ldt.
    Multiple file , little more effort is needed to create them.
    But more easy to maintain,

  • Too many flat files with different formats.

    Hi gurus,
    i have a headache problems. that is follows:
    We will upload data from flat files,but you know there are about 100 .xls files and with different formats.
    and as you know  the datasource of the flat file must correspond to every fields of the flat file.
    but you know there are 100 flat files and if we donot do any optimise,we will create about 100 transformation and 100 datasource to meet our requirements.
    but that seems impossible.
    is there any good idea to decrease the number of transfomation ?

    Hi AK1987,
    To import flat files with dynamic columns, we can use Script Task inside a Foreach Loop Container to parse the first row of the flat file to get the columns names and save them into a .NET variable, then, we can create “Create Table” script based on this
    variable, and then store the script into a SSIS package variable. After that, we create a staging table based on the package variable, load the flat file data to the staging table. Eventually, we load data from the staging table to the destination table. For
    the detail steps, please walk through the following blog:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • Ordering Different Products in Same Order

    When I order photo books through iphoto, if I want to order different sizes and styles (hardcover/softcover), I have to do them in separate orders -- and pay shipping and handling multiple times. Internet-based services do not have this limitation. In iphoto, I can change the quantity, but not mix and match different sizes and styles in the same order. Am I missing something, or is this a limitation in the iphoto software?

    This is a limitation of Apple's Photo services, not the software.
    Regards
    TD

  • Convert MPEG 4 file into different format

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.
    QT Pro does not "do" multiplexed compression formats. For that you would need an external, third-party, MPEG-based application. iDVD, Toast, Visual Hub, iVCD, MPEG2 Works, etc. would work here to create some of these formats. QT Pro, MPEG Streamclip, and GarageBand can all create DivX and/or XviD files if you have the appropriate QT components installed. (Not sure if you can still find DivX 3 but assume free download of DivX 5.1.1, 5.2.1, and/or Xvid are still readily available on the internet.)

  • How do I get the data in the CSV file to be in the same order as the form?

    When I merge my data from multiple form submissions into a csv file, the data is completely out of order, which makes it pretty much useles. How can I make it export the data in the same order? Also, the headers of each column or garbled. For example:
    Depth (mm) shows in excel as Depth__mm__aqWhxx1nhpwx*3sgoBx9UQ
    Lesion Location with check boxes: Face, Scalp, Trunk shows as each individual: Lesion_Location_1_15w4B5z9Kg2FKrkCPa6Wvg or Lesion_Location_3_15w4B5z9Kg2FKrkCPa6Wvg.
    What I want is for the data produced to be in the same order as the form and with the same headers.
    Also, I created several help texts that don't appear in the form.
    I'd be happy to upload any of the files (form template, form pdf, csv file) if there is a way to.
    I used Adobe Forms Central to create the forms in Acrobat XI Pro. I'm on a windows 7 computer.
    Thank you for your help

    Some of this is just the way it is with a PDF form created with FormsCentral. The fields get those names to ensure that they are unique, since the FormsCentral designer app does not allow yo to specify the field names directly. A fixt would be to create the form in Acrobat and you can give the fields any name you want. You can also change the field names in Acrobat after first removing the usage rights from the PDF by selecting: File > Save a Copy
    and renaming the fields to what you want. Also remove the submit button it added. You can then upload the edited PDF to FormsCentral and Distribute it. It looks as though the order of the fields in the table are alphabetical, so it you rename your fields so they will be in the order you want when arranged alphabetically (e.g., A1_Patient_ID, A2_Biopsy_Age, etc.), that might be an approach to take. Also, if this is for human patient data, check for regulatory compliance of this system. FormsCentral is specifically not HIPAA compliant as stated in the license agreement.

  • Render and Replace Different Format In Same Sequence

    Is there any way to keep the Interpret Footage settings after make Render and Replace option?
    I have a sequence setting in 1080 50p with two different formats  50p 720 (interpret in 25p) / 1080 25p, I did a render and replace of the total. And the result was that the rendered footage doesn´t  respect me the interpret settings.
    Thanks.

    Render and Replace is currently designed to transcode the clip and keep the Interpret Footage settings applied to the clip (not burned/rendered in). There is a feature request to burn/render in Interpret Footage (and other effects) to the transcoded clip.
    Not ideal, but a possible workaround would be to export the clips with "Import into project" selected in Export Settings, then Replace with Clip to get your desired outcome.

  • Copying formula using different sheet but same cells

    How can I copy this incredibly long formula into different cells but change the sheet that it's referencing without typing in the sheet name in every instance it occurs (at least 28 times right now).
    Is this something I'm going to have to use an outside editor (ie text edit, pages) to find & replace?

    I don't know which is the "incredibly long formula" but I know that Jerrold described the required scheme in the late 48 hours !
    In one fixed cell of your table (A1 is a good choice), store the name of the sheet to address.
    Then, in the formulas, use the function INDIRECT to compute the cell's reference grabbing the sheet name from the cell A1 (with an absolute reference : $A$1)
    This way, when you will paste the formula in an other table, it will grab the sheet name from the cell A1 of this new table.
    Yvan KOENIG (VALLAURIS, France) mardi 24 mai 2011 22:18:11
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for

  • Error getting when doing ADS configuration

    Hi , We have in our project the portal is working as frontend & ECC is working as a backend. I have done with all the steps of ADS configuration ,when I checked the link http://host:port/webdynpro/dispatcher/local/TutWD_OnlineInteractiveForm/OnlineIn

  • The equivalent of href

    i am trying to link differnt portets inside jsp and when i use href nothing happens what tag should i be using?

  • Import through Shell Scripts

    Hi Friends ,      I have run shell scripts for importing from my local system through TELNET It was running fine on the server.But now I need to import the same dump file into my local database.The ORACLE_SID refering to the database in the server is

  • Add Approvers/Reviewer in approval preview

    Hi All, I am using n-step workflow BAdI for SC approval. (WS14000133). I am having very strage situation. I can add Approvers / reviewers in approval preview in my development client but the same functionality doesn't work in test or QA environement.

  • LC 8.0 form wiping entered data.

    I have a dynamic form originally created using LC 7.1. The form was Saved As... using LC 8.0. The form has a table which adds rows via an addInstance button. Using Acro Pro 8, I distributed it so that it could be completed and saved by a user with ju