Cut down Table data

Hi
I got one requirement to cut down one Table having 4 years worth of data. Requirement want to export only 6 month of data of same table to another database.
The problem with this table is that.. This table is not having any "date" column_name or Data_type.
Table structure is as ..
"CLICK_ID" NUMBER,
"MEMBER_ID" NUMBER,
"LINK_ID" NUMBER,
"CLICK_TIMESTAMP" NUMBER,
"REMOTE_HOST" VARCHAR2(255 CHAR),
"USER_AGENT" VARCHAR2(255 CHAR),
"FAMILY" NUMBER,
"AGENT" NUMBER,
"TYPE" NUMBER,
"COMBINED" NUMBER,
"BUILDMODE" NUMBER,
Please guide me how can I cutdown this table to only 6 months of data.
I am on Oracle 10g.
Let me know if you need more information.
Thanks

PK wrote:
Hi
I got one requirement to cut down one Table having 4 years worth of data. Requirement want to export only 6 month of data of same table to another database.
The problem with this table is that.. This table is not having any "date" column_name or Data_type.
Table structure is as ..
"CLICK_ID" NUMBER,
"MEMBER_ID" NUMBER,
"LINK_ID" NUMBER,
"CLICK_TIMESTAMP" NUMBER,
"REMOTE_HOST" VARCHAR2(255 CHAR),
"USER_AGENT" VARCHAR2(255 CHAR),
"FAMILY" NUMBER,
"AGENT" NUMBER,
"TYPE" NUMBER,
"COMBINED" NUMBER,
"BUILDMODE" NUMBER,
Please guide me how can I cutdown this table to only 6 months of data.
I am on Oracle 10g.
Let me know if you need more information.
ThanksObviously you are going to have to decide how to identify the age of a row. WE certainly don't know your application. I do see a column CLICK_TIMESTAMP that could be promising. What is it?

Similar Messages

  • Workflows table is not showing up in Data Manager drop down table list

    Hi,
    I am able to see Workflows table in Console but not able to see it Data Manager drop down table list in record mode for selection.
    Even not allowed to create another workflow table.
    Thanks for any tips/clue
    -reo

    Reo,
    You will not be able to create another workflow table. There is only a single workflow table that will hold all the workflows you create through the Data Manager.
    As Vito mentioned, please make sure to load the corresponding MDMWorkflow component on the client machines running the Data Manager that you wish to create and view workflows from.
    Once the workflow component is installed you should see it as a new tab in the Data Manager. You will need Visio to create workflows.
    Thanks,
    Tim

  • I have iphone 5 ,i cut down bsnl 64k sim into nano and inserted it. everything is working except cellular data or 3g data, please help me

    i have iphone 5 ,i cut down bsnl 64k sim into nano and inserted it. everything is working calling & messaging except cellular data or 3g data, please help me

    Everything you need to know about the solution is written into the question you posed. Get a proper SIM.

  • How to fix the size of table data in html

    I want to fix the size of table data in html. ie if i want to insert only 50 char in a <td> field then it contain only 50 character, after that it switched to another line and contain the remaining character. Means <td> field wil not get automatically adjust there size according to data.

    you cant specify how many characters a td cell can have but u can specify the pixel width of a td cell
    <td width=50>
    as long as you have wrap text on, then text will not force the box size over the 50 pixels
    this wont limit it to only 50 chars though, you will probably have to use some javascript to cut the string down to size (unless youre using something like php or asp then that will do the trick too)

  • Table data does not refresh

    Using LV2010.
    A table displays the test configuration that has been selected by the user.  This appeared to work fine until recently. 
    Nothing in that area of the code has changed .
    The issue is that although valid data exists on the wire and it even gets written to file, nothing is displayed in the table.
    The operator can click multiple times and nothing is displayed.  Even when running with highlight execution turned ON, the table does not get refreshed.
    Unfortunately, each time the operator click the button to insert the configuration, it does.  But it is not displayed.  The same list goes to the table.  You would expect the subsequent attempts would cause all the items to be displayed when it finally does, but no... only the last selection gets displayed.
    I've recently taken over the project and did notice that a previously working feature was not working.  That feature was to allow multiple selections to be inserted at once.  I suspect the feature still workes, but the table only displays a single line of data.
    I did find a thread that started to discuss a similar behavior with a link to a description of the bug, but that page appears to have dissappeared from the website.  It was discussed in 2005.
    Is there a way to force a refresh display on a table?  Another thought... Could it be that the table is displaying data from a portion further down the list which makes it appear as if there is no data?  As I said earlier, this section of code was not touched and it is the only area where the table data is updated and the display refreshed..
    Has anyone else seen this behavior?
    As can be seen above, the probe does "see" the data on the wire.  The screen capture was taken after the data flow had completed the entire state. The wire itself claims to have a 2D array of 1 X 11 elements.  Normally, this data would be displayed.  I can't think of why it wouldn't be displayed.  If I could, I wouldn't be posting this.. 
    I am curious if this is a LV bug...
    Attachments:
    TableDataInvisible.PNG ‏21 KB

    You know me & locals... 
    Plus the property node was used for something else.
    I fear using the VI Analyzer would... well... euh..  hummm...  how to say this,...
    blow up.. 
    LOL!! 

  • Breaking down Spry Data Repeat

    Hi,
    I'm trying to create a spry data set  in a table from a XML data file. I have done that in below are the  codings I obtained from Spry tool.
    <div  spry:region="KomtarETA">
      <table>
        <tr  class="TableHeader">
          <td width="100">Route</td>
           <td width="1266">Current</td>
          <td  width="1366">Destination</td>
          <td  width="1266">Next</td>
          <td  width="100">Lane</td>
        </tr>
        <tr  class="TableContent" spry:repeat="KomtarETA">
           <td>{route}</td>
          <td>{desitnation</td>
           <td>{current}</td>
          <td>{next}</td>
           <td>>{lane}</td>
    I have some individual  codings need to be done on each individual  data field. I need to  seperate all the spry data into each individual  column.
    My question  is how I can control these data individually when it's in the table ? Is  there any codings changes need to be done ?
    Please advise.
    Thanks.

    Hi,
    Actually what I mean by breaking down the data and not by means of filtering.
    I still want to display every single data but I wan it to be individualised.
    Here's the link to the test site.
    http://www.pcsb.my/test/KomtarETA.html
    What I need is that some column will be static and some will be dynamic. The actual external XML data will be dynamic as there will be a live server feeding and overwritting it.
    If you look at the Spry table portion coding inside the HTML file, it's actually a Spry repeat and I don't have much control over each individual data I want to manipulate the codings.
    Please take a look at it.
    Thanks.

  • FM to upload the Internal table data into application server.

    Hi,
      Could you please give me Function module to Upload the Internal table data into Application server ie., in Tcode AL11.
    I know for downloading the Application server file into itab is "SUBST_GET_FILE_LIST" FM and using open dtaa set we get the data.
    Regards,
    deepthi.

    Hi Deepthi
    Incase you are looking to upload data in the AL11 through a program , then you can make use of OPEN DATASET...CLOSE DATASET statements.
    Here's the code snippet:
    IF tb_alvdisplay[] IS INITIAL.
        MESSAGE e999(/dcsea/zais_msg) WITH text-e01.
      ELSE.
        IF  NOT cb_ufile IS INITIAL  "Download to file
         AND sy-pagno = 0.            "Only down page headers for first page
          PERFORM fm_concatenate_path_name USING    p_path
                                                    p_file
                                           CHANGING v_file.
    *Open file for download.
          PERFORM fm_open_file USING v_file .
        ENDIF.
        LOOP AT tb_alvdisplay.
          IF  NOT cb_ufile IS INITIAL.
    *Passing the values of the respective headings to the structure.
            ws_rec-vend_no     = tb_alvdisplay-vendno.
            ws_rec-vend_nm     = tb_alvdisplay-vendnm.
            ws_rec-title       = tb_alvdisplay-vendtl.
            ws_rec-add         = tb_alvdisplay-add.
            ws_rec-city1       = tb_alvdisplay-city1.
            ws_rec-region      = tb_alvdisplay-region.
            ws_rec-country     = tb_alvdisplay-country.
            ws_rec-pobox       = tb_alvdisplay-po.
            ws_rec-phone       = tb_alvdisplay-telf1.
            ws_rec-extn        = tb_alvdisplay-extn.
            ws_rec-fax         = tb_alvdisplay-telfx.
            ws_rec-zterm       = tb_alvdisplay-zterm.
            ws_rec-remark      = tb_alvdisplay-remark.
            ws_rec-email       = tb_alvdisplay-email.
    *Passing the separator 'PIPE' to the structure.
              ws_rec-sep01  = co_sep.
              ws_rec-sep02  = co_sep.
              ws_rec-sep03  = co_sep.
              ws_rec-sep04  = co_sep.
              ws_rec-sep05  = co_sep.
              ws_rec-sep06  = co_sep.
              ws_rec-sep07  = co_sep.
              ws_rec-sep08  = co_sep.
              ws_rec-sep09  = co_sep.
              ws_rec-sep10  = co_sep.
              ws_rec-sep11  = co_sep.
              ws_rec-sep12  = co_sep.
              ws_rec-sep13  = co_sep.
            TRANSFER ws_rec TO v_file.
          ENDIF.
          AT LAST.
            IF NOT cb_ufile IS INITIAL.
    *Closing the DATASET file.
              CLOSE DATASET v_file.
              IF sy-subrc <> 0.
    *Failure Message.
                MESSAGE e999(/dcsea/zais_msg) WITH text-t04 text-t06.
              ELSE.
    *Success message.
                MESSAGE s999(/dcsea/zais_msg) WITH text-t05.
              ENDIF.
            ENDIF.
          ENDAT.
        ENDLOOP.
      ENDIF.
    Also as Gautham suggested you can use tcode CG3Z or CG3Y incase you are looking to upload the data directly.
    FInally, you can search SCN using the keywords, "Upload to AL11" and you'll get loads of results.
    Hope this helps.
    Harsh

  • Copy and Paste does not work in filter statement of table data

    I am using SQL Developer 3.0.04. I can not copy nor paste in the filter criteria when watching or editing table data. Is it a bug or do I have to change some settings?

    Hi Sven,
    I did a bit more research and now I hope we will be talking about the same thing. Bear with me and let me clarify. In terms of my prior comment about the process necessary to copy a value from a data cell into the clipboard, I was totally off-base. Once the focus is on a data cell, all one need do is Edit menu|Copy or ctrl-c. I have no idea why I had trouble with that yesterday.
    Anyway, getting back to what's relevant with regard to your issue:
    1) If something is in the clipboard, then both Edit menu|Paste and ctrl-v work for a data cell target.
    2) If something is in the clipboard, then Edit menu|Paste fails for a data tab filter target.
    3) If something is in the clipboard, then ctrl-v works for a data tab filter target.
    So obviously conditions exist where pasting to the data tab filter can work. But here is a scenario where I found a problem similar to what you describe:
    1) For the EMP table in SCOTT, display all employees in the data tab.
    2) Apply a filter. For example, filter on JOB='SALESMAN'. Now 4 salesman, all in dept 30, are displayed.
    3) Next you decide to view only employees in dept 30.
    4) Copy the value 30 from the DEPTNO column. Carelessly put the focus on ENAME column in one of the data tab rows.
    5) Next focus on data tab filter to blank out JOB='SALESMAN' predicate. Drop down to select DEPTNO. Append an = sign.
    6) Finally Edit menu|Paste. Instead of seeing DEPTNO=30 in the filter, we see...
    7) The filter contains nothing and is disabled (greyed out).
    8) The ENAME column of the prior focus now contains the value 30 rather than the a salesman's name.
    Your case may be different/more complex, but at least this simple case demonstrates in a repeatable fashion what I noticed but didn't describe very well yesterday. I have logged the following internal bug:
    Bug 12753266 - EDIT MENU PASTE INTO DATA TAB FILTER DOES NOT WORK AND MAY DISABLE THE FILTER
    Using the rollback button, blanking out any filter value and hitting enter displays all original employee rows.
    Regards,
    Gary

  • To get the table data into a file in pl/sql developer

    Hi
    i have table with 90k rows, i want to get the table data into a file like excel....
    i executed the select statement it shows only 5k rows because of buffer problem.
    can u please help me any alternative way to get the table data into a file.
    using cursors like that

    Really? excel for 90K rows :)
    face/desk/floor/"Hi and sorry neighbours below, it's me again"
    Err, I see you point, thanks Dang, I completely missed the 90k recs part, I must be getting old or modern ;)
    @Ramanjaneyulu,
    can u please help me any alternative way to get the table data into a file.You can always dump a query to a file, check these:
    http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html
    How to create Excel file (scroll down when necessary)
    http://forums.oracle.com/forums/search.jspa?threadID=&q=export+to+excel&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001
    Depending on your database version ( the result of: select * from v$version; ) you might have some other options.

  • Jsp table data.

    I have a jsp page, where it retrieves some data from database and displays the resulting records in html table.
    problem is that when the table grows, it is hard to keep track of the header labels for the data when we scroll down the data...
    so I was wondering if we can freeze the table header while allowing to scroll through the data...
    I know that we can do this using frame..but I ain't like frames..and I got to know that for IE we have solution..using
    'overflow' attribute of div element...but it ain't work for NN4.7....
    Any ideas or workarounds for this.........

    I agree with jussist. Just create the headers again every 10-20 rows or so.
    However, I don't agree that using paging on tables is that big a deal. I think it all depends on where the data is, of course. But lets say you have one global table for everyone, then all users can read this same table. Then paging is trivial because you can take a subset for each page per user.
    For larger data sets this is going to be faster then sending all data, and it will definitely be perceived faster by users because the browser has to render less. The problem with tables in most browsers is until the </table> tag shows up, they don't usually show anything for the table.
    The Section 508 requirements don't require supporting specific browsers, that I'm aware of. They only require certain elements must be present in pages (alt tags, etc). Of course it doesn't help when trying to design dynamic pages, which I do a lot of, which sucks, but I guess is good for NN4.7. But, IMHO, NN4.7 is so much crap, at least compared to NN7 and IE6 and the standards.

  • Load Table Data into Excel Specific range

    Hi,
    I am working with Excel Destination in SSIS, where i have to insert table data into multiple excel sheets with specific range, sheet name same as table name and i should load each table into that particular sheet name in excel.
    So Sheet name will decide at run time and i have created one variable to pass complete sheet name (like [DimAge$A16:R1000]) in excel destination, but it is throwing error Here i am facing two complexities
    1)Getting error while passing excel sheet name as variable
    2) How to insert into excel in specific range of values shown as above.
    Ur help in solving this would be appreciated

    Hi Naveen,
    Based on my research, a worksheet or range is the equivalent of a table or view in Excel. The lists of available tables in the Excel Source and Destination editors display only existing worksheets (identified by the $ sign appended to the worksheet name,
    such as Sheet1$) and named ranges (identified by the absence of the $ sign, such as MyRange).
    So when you use a variable with [DimAge$A16:R1000] or [Select * from DimAge!A$16:R$1000] value in the Excel Destination, the value acts as a worksheet or range name. But there is no such worksheet or range in the excel file, so the error message occurs.
    To fix this issue, please select the cell range in your excel sheet, then right-click the range to define a name for the range to create some ranges with the specific ranges in excel file, then in the "Name of the Excel Sheet" drop down box of
    "Excel Destination Editor" you can see that Named range. Then simply select the range from the drop-down list or use a variable with the range name as the Excel Destination.
    For more information about how to import data to Excel sheet's specific region, please refer to the following blog:
    http://getsetsql.blogspot.in/2012/01/using-ssis-load-data-to-excel-sheet-at.html
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Getting problem in binding DropDown List with table data in visual JSF

    Hi All,
    I am new to visual JSF.
    I am getting few problems while working over components.
    I have succeeded in binding data of Person table in a drop down list .
    By just drag drop ..it worked.
    But while connecting to external DB this drag drop mechanism didn't work for me .
    1st problem that i faced was by dragging method columns are not visible when i did right click-> bind to Data -> DataProvider window .
    But i am successfully printed table Data in backend ie: by putting
    for(int i=0; i<xn_white_listDataProvider.getAllRows().length;i++){
           System.out.println("  value :"+xn_white_listDataProvider.getValue("SUB_ID",xn_white_listDataProvider.getRowKey(Integer.toString(i))));
    }I am not getting how to set Items in dropdown1
    I tried putting
    HelloSh.xn_white_listDataProvider.options['XNODE.XN_WHITE_LIST.SUB_ID, XNODE.XN_WHITE_LIST.SUB_ID'but it didn't work while for person data table
      items="#{HelloSh.personDataProvider.options['PERSON.PERSONID,PERSON.NAME']}"it is working
    when i am writting items="24,28" in dropdown1 box
    & printing its value in static text Like
    <webuijsf:staticText id="staticText3" style="position: absolute; left: 72px; top: 120px" text="#{HelloSh.dropDown1.items}"/> it is printing fine .
    Plz help me in this regard.
    Any clarification if needed plz let me know.
    Thanks in advance.

    <h:selectOneMenu id="menu1" styleClass="selectOneMenu">
    <f:selectItems value="*#{selectitems.pc_DynamicPortletEdit.regList}*" />
    </h:selectOneMenu>When we bind the list to the h:selectOneMenu the code in the JSP will be as given above.
    My doubts here are
    1) But when i tried to bind the list to a selectonemenu the code in the JSP is looking like this one
    <h:selectOneMenu id="menu1" styleClass="selectOneMenu">
    <f:selectItems value="*#{selectitems.pc_DynamicPortletEdit.regList.regList.toArray}*" />
    </h:selectOneMenu>2) Also in the runtime instead of displaying the values in the dropdown, i am getting the object names (javax.faces.model.SelectItem@680d0ccc) in the drop down.
    What am I doing wrong? Any help here would be usefull for me.
    BTW,
    the code in the backing bean for setting the values is like this
    List dropListValue = new ArrayList();
        for (int x=0; x<result.length; x++){ //where result is array of string values              
            SelectItem tempSelect = new SelectItem();
            tempSelect.setLabel(result[x]);
            tempSelect.setValue(result[x]);
            dropListValue.add(result[x]);                      
    this.setRegList(dropListValue );The bean is in request scope only.

  • Order table data with comparing rows

    Hi,
    My question is...
    I have table with with 5 columns this actually is been loaded from a file and there is no direct PK, but for that combination of columns as used to make them unique
    code, person, case
    Table X
    CODE             CASE              OLD_ID                NEW_ID            PERSON       AUTH
    01              ab122         1234               0001             AU123     99393
    07              vv353          7872               0919             FV982     78282
    01              ab122         1982               9929             AU123     99393
    04               hjsss         8839                8302            JK920     32320
    01              ab122         0001               1982             AU123     99393
    05              cg899         6728               32322           IKL020     65252
    07              w353          0919                8282             FV982     78282
    now I need to order this data comparing row values of old_id to new_id for each of the combinations of code, person, case
    need output like below
    Table X
    CODE             CASE              OLD_ID                NEW_ID            PERSON       AUTH
    01              ab122         1234               0001             AU123     99393
    01              ab122         0001               1982             AU123     99393
    01              ab122         1982               9929             AU123     99393
    04               hjsss         8839                8302            JK920     32320
    05              cg899         6728              32322           IKL020     65252
    07              vv353          7872               0919             FV982     78282
    07              w353          0919                8282            FV982     78282
    hot to get this result, any help is much appreciated..
    Thanks,
    AK.

    Yes you are right, I took it down to edit this in that time you have posted the message...
    Question:
    Table data need to be sorted by matching old_id with new_id
    actual table : here rows are randomly arranged
    Table X
    CODE             CASE              OLD_ID                NEW_ID            PERSON       AUTH
    01              ab122         1234               0001             AU123     99393
    07              vv353          7872               0919             FV982     78282
    01              ab122         1982               9929             AU123     99393
    04               hjsss         8839                8302            JK920     32320
    01              ab122         0001               1982             AU123     99393
    05              cg899         6728               32322           IKL020     65252
    07              w353          0919                8282             FV982     78282
    output table: here if you see old_id of row 2 is matched to new_id of row 1.. and so on
    Table X
    CODE             CASE              OLD_ID                NEW_ID            PERSON       AUTH
    01              ab122         1234               0001             AU123     99393
    01              ab122         0001               1982             AU123     99393
    01              ab122         1982               9929             AU123     99393
    04               hjsss         8839                8302            JK920     32320
    05              cg899         6728              32322           IKL020     65252
    07              vv353          7872               0919             FV982     78282
    07              w353          0919                8282            FV982     78282
    so, I need a query where I can generate this output..

  • Table Data Editor in 10g

    Does 10g have a built-in, direct equivalent to the Table Data Editor function that was present in 9i?

    Right, that's the tool I'm using - the EM Console - or at least I'm pretty sure. Let me confirm what I'm doing. I load the page using http://mycomputername:5500/em. I'm logging in as the SYSDBA. Up at the top of the page, it shows the words "Oracle Enterprise Manager 10g", below that the words "Database Control", over on the right a tab that says "Database". Various categories in the main body of the page, such as General, Host CPU, Active Sessions, SQL Response Time, Diagnostic Summary, etc...
    Is this the EM Console? Am I in the right place?
    So, I'm on that page, and I've gone through everything a zillion times, and if the Table Data Editor is available on this tool, then I'm just blind, because I can't find it. I can click 'Administration', then 'Tables' (under Schema/Database Objects) and display all of the table names (I'm using the SCOTT schema). I select the EMP table, because I see that it has 14 rows, so I know there's some data there.
    If I click on either the table name link or the VIEW button, I see the table definition, no data. If I click EDIT, I can change the table structure, no data. If I select 'View Data' from the 'Actions' drop-down box, I can see, but not edit, the data in the table.
    Where, oh where, is the link or menu selection that gets me to the 10g equivalent of the Table Data Editor, if it exists?

  • Extract the table data

    Hi
    i am having a table data...where i want t read that data and put it in another desired format:
    Here is the actual data:
    sno     Description     Qty.     Units     Rate (Rs.)     Value (Rs.)
    1     Aviation Lamp     1     Nos     3700     3,700
    2     Lighting Arrester     1     Nos     1600     1,600
    3     Aviataion Lamp Cable     31     Rmt          270     8,370
         Gross Total                    13,670
         The     above     Total include     Services     Tax Amount of     Rs     536                    
         Total Invoice Value     I                    13,670
         Now Claimed 100% of Invoice Value                    13,670
    (Rupees Thirteen Thousand Six Hundred and Seventy only)           
    My Desired ouput should be in
    S.No 1
    Description Aviation Lamp
    Qty. 1
    Units Nos
    Rate (Rs.) 3700
    Value (Rs.) 3700
    S.No 2
    Description Lighting Arrester
    Qty.1
    Units Nos
    Rate (Rs.) 1600
    Value (Rs.) 1600
    S.No 3
    Description Aviataion Lamp Cable
    Qty.31
    Units Nos Rmt
    Rate (Rs.) 270
    Value (Rs.) 8,370
    Gross Total 13,670
    Tax Amount of Rs 536
    Total Invoice Value 13,670
    i have written code like this:
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class TabDeli {
        String LineFeed=null,line=null,Output=null; int ctr=0;
    BufferedReader in = new BufferedReader(new FileReader("D:\\tab2.txt"));
                                    while ((line = in.readLine()) != null) {
                        LineFeed  += line;
                        ctr++;
    String substring;
        LineFeed = LineFeed.substring(4);               
    int ptr = ctr-4; String LineFeed2 = LineFeed;
    for (int i=1; i<ptr;i++){
           try{
            Output +=("S.No " + LineFeed2.substring(0,LineFeed2`.IndexOf("$")+"/n"));
            LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
            Output += "Description "
                       + LineFeed2.substring(0,LineFeed2.IndexOf("$")+"\n";
            LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
            Output += ("Qty. " + LineFeed2.substring(0,LineFeed2.IndexOf("$")+"\n");
            LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
            Output += ("Units " + LineFeed2.substring(0,LineFeed2.IndexOf("$")+"\n"));
            LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
            Output +=( "Rate (Rs.) "
                       + LineFeed2.substring(0,LineFeed2.IndexOf("$")+"\n"));
            LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
            Output += ("Value (Rs.) "
                      + LineFeed2.substring(0,LineFeed2.IndexOf("$")+"\n"+"\n"));
            LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
            } catch (Exception A){
            System.out.println("Error in Line Number: " + ptr+1);}
    LineFeed2 = LineFeed2.substring(4); //removing the null =)
    //Adding the Last Line
    LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
    Output += ("Gross Total " + LineFeed2.substring(0,LineFeed2.IndexOf("$")));
    LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
    Output += ("Tax Amount of Rs "
              + LineFeed2.substring(0,LineFeed2.IndexOf("$")));
    LineFeed2 = LineFeed2.substring(IndexOf("$")+1);
    Output +=( "Total Invoice Value "
              + LineFeed2.substring(0,LineFeed2.IndexOf("$")));
    LineFeed2 = (LineFeed2.substring(IndexOf("$")+1));
    //Here is the output you Desire
    System.out.println(Output);
    }I think a simplier approach is to add a Delimeter. Then Cut the substring before the Delimeter. You can also check if there is a missing part in the line by counting the delimeters. Here is my suggestion.
    S.No Description Qty. Units Rate (Rs.) Value (Rs.)
    1$Aviation Lamp$1$Nos$3700$3,700$
    2$Lighting Arrester$1$Nos$1600$1,600$
    3$Aviataion Lamp Cable$31$Rmt$270$8,370$
    Gross Total $13,670$
    The above Total include Services Tax Amount of Rs $536$
    Total Invoice Value $13,670$
    thats how should it look. You can change the '$' sign if you like.
    Then, extract all the content of the file into a single String.
    i am unable to process it...can any one give me idea where i went wrong??

    Really ambitious multi-poster.
    [http://forum.java.sun.com/thread.jspa?threadID=5288046]
    [http://forum.java.sun.com/thread.jspa?threadID=5295109]
    [http://www.java-forums.org/new-java/8338-how-achieve.html]
    [http://regexadvice.com/forums/thread/41546.aspx]

Maybe you are looking for

  • Can I use my time capsule as a time machine and a hard drive

    Hi all, Can I use my time capsule as a time machine and a hard drive? I don't want to store much on my imac, I would like to store it on the time capsule. If this is possible, how do I do it? Thanks, Crankyhead.

  • Is it possible to move applications etc from the phone back into itunes

    does anyone know how to move applications and ringtones notes etc etc back into the itunes ? i dont mean back up I have for example tom tom i uploaded onto my phone, however old pc died and now i have no apps other than on my phone, i would like to g

  • Reader 10 vs 9.1 scripting error

    Hi, I have created a complex form that has a lot of interdependencies and calculation scripts. The target version is set to "Reader 9.1. or later". I had a user get an error on a  FormCalc script on the preOpen event of a dropdown box. The error mess

  • Does anyone email ACH remittance info to vendors

    We are about to start paying many of our vendors via ACH instead of Check. Is there a way, through the system, to send payment information to the vendors by email? If we can, we would like to avoid stuffing remittance advices into envelopes and maili

  • IPhone 2.0.2 upgrade crashes

    My new iPhone was fine but now has crashed with the upgrade. The upgrade was hung up with a message stating verifying iphone software that appears in iTunes. I then tried a restore but that has the same result. Now the only thing I see on my iPhone i