To extract data from a file previously misspelled

I am trying to extract two tables of a previously written file, which contains two tables, separated by a tank/t. Files are saved in this format;

Wavelength (nm)ower (W):

* lambda1 * power1 *.

* lambda2 * power2 *.

...

' lambda # "and" power # ' are the two numbers actually, but I wanted to illustrate that they are correlated.

In addition, with the retrieved data, I want to write a new file, which uses the information (in another port scan) to calculate a third value (called the EQA), which depends on the power and the current at a given wavelength. While the VI is the current reading by lambda, it should also be able to find what the lambda value to such power has been and calculate the EQE.

I have so far on the screws are attached. The third part of 'problem.vi' is locked in a while loop, while she repeats many times.

Thank you very much


Tags: NI Software

Similar Questions

  • Extract data from xml file item

    I inserted all data from an xml file into an xml table in the database (after creating the directory and getclobdocument function)
    with

    INSERT INTO TEST_XML
    SELECT (XMLTYPE (getCLOBDocument ('MXMLF.xml'))) FROM DUAL;

    Now how to extract the individual item in the relational table my data in the xml table is something like the following.

    rowset <>
    < TransmissionHeader >
    < TransmissionDateTime > 2008 - 12 - 04T 09: 30:47 - 05:00 < / TransmissionDateTime >
    IATA:ISXMLInvoiceV3.1 < version > < / Version >
    < IssuingOrganizationID > 111 < / IssuingOrganizationID >
    < BillingCategory > various < / BillingCategory >
    < / TransmissionHeader >
    < invoice >
    < InvoiceHeader >
    < InvoiceNumber > 182792000 < / InvoiceNumber >
    < invoiceDate > 2007 - 12 - 19 < / InvoiceDate >
    Bill < InvoiceType > < / InvoiceType >
    < LocationCode > EWR < / LocationCode >
    Engineering of < ChargeCategory > < / ChargeCategory >
    < SellerOrganization >
    < > 111 OrganizationID < / OrganizationID >
    < OrganizationDesignator > ZZ < / OrganizationDesignator >
    Zed airlines < Nomorganisation1 > < / Nomorganisation1 >
    < TaxRegistrationID > 111ABC111 < / TaxRegistrationID >
    < CompanyRegistrationID > ABC111ABC < / CompanyRegistrationID >
    Patrick < ContactName > < / ContactName >
    < address >
    < > 111, Zed AddressLine1 headquarters < / AddressLine1 >
    Montreal < CityName > < / Nom_ville >
    < CountryCode > CA < / CountryCode >
    Canada < CountryName > < / CountryName >
    < code postal > 110011 < / code >
    < / address >
    < / SellerOrganization >
    < BuyerOrganization >
    < > 222 OrganizationID < / OrganizationID >
    < OrganizationDesignator > GG < / OrganizationDesignator >
    < Nomorganisation1 > Globe Airlines < / Nomorganisation1 >
    < TaxRegistrationID > GB22200222 < / TaxRegistrationID >
    < CompanyRegistrationID > Go 222 222 < / CompanyRegistrationID >
    George < ContactName > < / ContactName >
    < address >
    < AddressLine1 > 222, Globe headquarters < / AddressLine1 >
    London < CityName > < / Nom_ville >
    < CountryCode > GB < / CountryCode >
    England < CountryName > < / CountryName >
    < code postal > 220022 < / code >
    < / address >
    < / BuyerOrganization >
    < ConditionsPaiement >
    < CurrencyCode > $ < / CurrencyCode >
    < SettlementMonthPeriod > 071203 < / SettlementMonthPeriod >
    < SettlementMethod > I < / SettlementMethod >
    < / ConditionsPaiement >
    < ISDetails >
    < DigitalSignatureFlag > N < / DigitalSignatureFlag >
    < / ISDetails >
    < setting >
    < AttachmentIndicatorOriginal > Y < / AttachmentIndicatorOriginal >
    < / fixing >
    < / InvoiceHeader >
    < LineItem >
    < LineItemNumber > 1 < / LineItemNumber >
    < ChargeCode > MRO repairs and review < / ChargeCode >
    < description > package for unique maintenance work. Water VAVLE drain compl. P/N 9350022 < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice SF = "1" > 300,0000 < / UnitPrice >
    < ChargeAmount > 300,00 < / ChargeAmount >
    < TotalNetAmount > 300,00 < / TotalNetAmount >
    < / LineItem >
    < LineItem >
    < LineItemNumber > 2 < / LineItemNumber >
    < ChargeCode > MRO repairs and review < / ChargeCode >
    < description > material consumption for the single interview. Water VAVLE drain compl. P/N 9350022, S/N FRTR013AW < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice SF = "1" > 900.0000 < / UnitPrice >
    < ChargeAmount > 900.00 < / ChargeAmount >
    < TotalAddOnChargeAmount > 180.00 < / TotalAddOnChargeAmount >
    < TotalNetAmount > 1080.00 < / TotalNetAmount >
    < / LineItem >
    < LineItemDetail >
    < DetailNumber > 1 < / DetailNumber >
    < LineItemNumber > 1 < / LineItemNumber >
    < description > package for unique maintenance work. Water VAVLE drain compl. P/N 9350022 < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 300,0000 < / UnitPrice >
    < ChargeAmount > 300,00 < / ChargeAmount >
    < TotalNetAmount > 300,00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350022 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 1 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    < description > material consumption diaphragm < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 200.0000 < / UnitPrice >
    < ChargeAmount > 200.00 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 200.00 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 40.00 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 240.00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350584 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 2 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    < description > material consumption coverage < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 177.5000 < / UnitPrice >
    < ChargeAmount > 177,50 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 177,50 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 35.50 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 213,00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350595 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 3 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    Assembly of material consumption - Base < description > < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 520.0000 < / UnitPrice >
    < ChargeAmount > 520.00 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 520.00 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 104.00 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 624,00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350598 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 4 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    Packaging material consumption < description > < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 0.0800 < / UnitPrice >
    < ChargeAmount > 0.08 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 0.08 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 0.02 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 0.10 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > AS3209-009 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >

    How now?

    Please a little help

    I tried to instead of but of no use

    The new element in the root is 'InvoiceTransmission', so replace 'Lines' with it.
    In addition, there is now a default namespace, you must declare it as well:

    SELECT x1.InvoiceNumber
         , x1.InvoiceDate
         , x1.InvoiceType
         , x1.LocationCode
         , x2.*
         , x3.*
    FROM test_xml t
       , XMLTable(
           XMLNamespaces(default 'http://www.IATA.com/IATAAviationInvoiceStandard')
         , '/InvoiceTransmission/Invoice'
           passing t.object_value
           columns InvoiceNumber   number       path 'InvoiceHeader/InvoiceNumber'
                 , InvoiceDate     date         path 'InvoiceHeader/InvoiceDate'
                 , InvoiceType     varchar2(30) path 'InvoiceHeader/InvoiceType'
                 , LocationCode    varchar2(3)  path 'InvoiceHeader/LocationCode'
                 , LineItems       xmltype      path 'LineItem'
                 , LineItemDetails xmltype      path 'LineItemDetail'
         ) x1
       , XMLTable(
           XMLNamespaces(default 'http://www.IATA.com/IATAAviationInvoiceStandard')
         , '/LineItem'
           passing x1.LineItems
           columns LineItemNumber         number        path 'LineItemNumber'
                 , ChargeCode             varchar2(80)  path 'ChargeCode'
                 , Description            varchar2(200) path 'Description'
                 , EndDate                date          path 'EndDate'
                 , Quantity               number(8,4)   path 'Quantity'
                 , Quantity_UOM           varchar2(3)   path 'Quantity/@UOMCode'
                 , UnitPrice              number(8,4)   path 'UnitPrice'
                 , UnitPrice_SF           varchar2(3)   path 'UnitPrice/@SF'
                 , ChargeAmount           number(6,2)   path 'ChargeAmount'
                 , TotalAddOnChargeAmount number(6,2)   path 'TotalAddOnChargeAmount'
                 , TotalNetAmount         number(6,2)   path 'TotalNetAmount'
         ) x2
       , XMLTable(
           XMLNamespaces(default 'http://www.IATA.com/IATAAviationInvoiceStandard')
         , '$d/LineItemDetail[LineItemNumber=$lin]'
           passing x1.LineItemDetails as "d"
                 , x2.LineItemNumber as "lin"
           columns AircraftRegistrationNo varchar2(30) path 'AircraftDetails/AircraftRegistrationNo'
                 , PartNo                 varchar2(30) path 'AircraftDetails/PartNo'
         ) x3
    ;
    
  • extract data from text file to draw the graph

    Hello

    In the attached data file, I would like to extract the (real) % Freq column and then be able to plot them on a graph of % Freq vs other columns (i.e. % Freq vs Amp, or % Freq vs Test1...).

    Any help will be greatly appreciated.

    Thank you

    hiNi.

    hiNI,

    There are a lot of questions to ask, but to answer your question immediately ' How do I parwse the necessary data as numbers? (see the attachment, png)

    1. read worksheet

    2 table subset rated 19

    This should give you your numeric values for all your X and Y values.

    Chazzzmd

  • extract data from xml file

    Hi all
    what it means:

    Select xxx xmltype(transaction_document).extract('//PerAllVacanciesEORow/xxx/text()').getStringVal)
    of hr_api_transactions
    where transaction_ref_table = 'PER_ALL_VACANCIES. '
    and transaction_ref_id = 4608;
    I think it gives only the value of the numeric type to a string format

    Please explain each step in detail

    Hello

    xmltype(transaction_document)
    

    Which converts the TRANSACTION_DOCUMENT (probably from the CLOB data type) in an XMLType data type column.

    .extract('//PerAllVacanciesEORow/xxx/text()')
    

    The part retrieves all text nodes containing elements 'xxx', whose parent is an element of 'PerAllVacanciesEORow '.
    Note that if the XPath "//PerAllVacanciesEORow/xxx" corresponds to multiple nodes, then text() values will be concatenated.

    .getStringVal()
    

    Converts the XMLType return VARCHAR2 data type.

    If you have a problem with the result, post an example of XML, the output data wanted him.
    Please also give your version of the database.

  • extract data from a table to a text file

    I need to extract data from a table to a text file, I twist my output is the following...

    bash-3. $00 vi tap3roamercosts_20110915144318.txt
    lines of 'tap3roamercosts_20110915144318.txt' 393948, 23464348 characters
    ^ LAFGTD | N | 2011090203000001 | 13242514000064 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
    755. 64. 70. 0093794428588 | 0093796234547 | 0 | S2 | E | 412200306902634 | 8. 1. 61500 | 16081 |
    | HW | Call to the Roamer. 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | LKA | N_I_Independent
    the time of day. Rate of Roamer SMST systems | AFGTD20110902030000010001013242514000064 |
    |||||||||||||||||||||

    AFGTD | N | 2011090203000001 | 13242612000044 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
    853. 44. 70. 234. 0093793252818 | 0 | S2 | E | 412200303198150 | 8. 1. 61000 | 12403 | HW | -Ro
    bitter call | 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | N_I_Independent time of Da
    There | Rate of Roamer SMST systems | AFGTD20110902030000010001013242612000044 |
    ||||||||

    AFGTD | N | 2011090203000001 | 13242612000047 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
    853. 47. 70. 234. 0093793252818 | 0 | S2 | E | 412200303198150 | 8. 1. 61000 | 12403 | HW | -Ro
    bitter call | 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | N_I_Independent time of Da
    There | Rate of Roamer SMST systems | AFGTD20110902030000010001013242612000047 |
    ||||||||
    .
    .
    .
    .
    .

    Please help me how to format my output each record in simple lines in oracle sqlplus. Here are the settings I used...

    TERMOUT OFF SET;
    SET ECHO OFF;
    SET LINESIZE 100000;
    THE VALUE OF NEWPAGE 0;
    SET SPACE 0;
    SET PAGESIZE 50000;
    SET FEEDBACK OFF;
    SET THE OFF POSITION;
    SET TRIMSPOOL
    SET THE TAB

    And what was wrong with the answers that you have on your previous thread?

    How to extract data in a text file

    Please do not ask the same question again. If there is a problem with the answers provided, then continue on the same thread that tell people what is the problem.

    Saying that, this is another possibility for you...

    As user sys:

    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    /
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /
    

    As myuser:

    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      --
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    

    This allows the header line and the data to write into files separate if necessary.

    for example

    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    
    PL/SQL procedure successfully completed.
    

    Output.txt file contains:

    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
    

    The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.

    Adapt to the exit of styles and different types of data are needed.

  • Extract data from Oracle into excel file

    Hello

    I have a requirement where in I need to extract data from Oracle into excel file and the worksheet excel name should be 'given '.
    for example. Excel 'AR Data_DDMMYY' file name and the name of the "Data" sheet excel

    I used the UTL_FILE API to extract the data delimited by tabs that you can open in excel, but it's not exactly an excel file as the name of the worksheet is the same as the name of the file.

    I tried to use utl_file.fcopy and frename.

    Is it possible to do it using PLSQL?

    Select * from version of v$.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    Example Code:
    declare
    cursor c is
    select * from scott.emp;
    v varchar2(100);
    f utl_file.file_type;
    
    file_name varchar2(100) := 'AR Data.xls';
    dir varchar2(50) := 'CESDIR191710';
    
    --select * from dba_directories
    
    begin
    
    
    f := utl_file.fopen(dir, file_name, 'W');
    
    v := 'EMPNO'||chr(9)||'ENAME'||chr(9)||'JOB'||chr(9)||'SAL'||chr(9)||'HIREDATE'||chr(9)||'DEPTNO';
    utl_file.put_line(f, v);
    
    for i in c
    loop
    
    v := i.empno||chr(9)||i.ename||chr(9)||i.job||chr(9)||i.sal||chr(9)||i.hiredate||chr(9)||i.deptno;
    utl_file.put_line(f, v);
    
    end loop;
    utl_file.fclose(f);
    
    --utl_file.frename(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls', false);
    utl_file.fcopy(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls');
    
    end;
    Thank you
    Imran

    Hello

    I tried to change the .xlsx to .xls and it gives a note at the opening of the file "the file you are trying to open, abc.xls, is in a different format that it is specified by the file extension. Check that the file is not corrupted and precedes from a trusted source before you open the file. Do you want to open it now? »

    When you rename the file does not solve your problem.
    Anton Scheffer package generates a file in format xlsx Office 2010. When rename you it with the .xls extension, then Office 2010 will give you the warning that the file format does not match the extension.

    but the requirement has to generate excel 2003 file.

    The xml_spreadsheet package writes a format that was introduced with Office 2003, but you must use .xml as extension in other Office 2010 will give you the same caveat.
    To write the real xls version (binary), you can use Apache POI. You will need to import Java classes in your db and write a PL/SQL wrapper. Or you can use one of the options above, writing the output to a windows server and then use Excel to open and save in the required format.

    You must decide whether it is easier to write the binary xls format or to convince the customer to accept other formats that can be opened with Excel.

    Concerning
    Marcus

  • Extract data from an xml file takes almost an hour to 2.5 M data.

    Hello

    Any help would be much appreciated. Extract data from an xml file takes almost an hour to 2.5 M. data is there a solution to this.

    WITH t AS
    (SELECT XMLTYPE (response) pass FROM dual
    )
    SELECT
    b.entity_id,
    c.INSTANCE_ID,
    d.attribute_id,
    d.DATA_TYPE,
    d.ATTRIBUTE_VALUE,
    d.outcome_style
    T,.
    XMLTABLE (XMLNamespaces ("http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP-ENV"
    'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS 'type')
    , ' SOAP - ENV:Envelope / SOAP - ENV:Body / typ: assess-response/typ: global instance / typ:entity'
    PASSAGE t.col
    Path of COLUMNS entity_id VARCHAR2 (256) "@id".
    path XMLTYPE res_tmp2 'typ:instance') b
    xmltable (XMLNamespaces ("http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP-ENV"
    'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS 'type')
    , "typ:instance".
    PASSAGE b.res_tmp2
    Path of COLUMNS instance_id VARCHAR2 (256) "@id".
    path XMLTYPE res_tmp3 'typ:attribute') c
    xmltable (XMLNamespaces ("http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP-ENV"
    'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS 'type')
    , "typ:attribute".
    PASSAGE c.res_tmp3
    Path of VARCHAR2 (256) COLUMNS attribute_id '@id '.
    , data_type VARCHAR2 (256) path '@type '.
    , attribute_value VARCHAR2 (256) path '.'
    path VARCHAR2 (256) outcome_style '@inferred') d;

    Thank you
    Mhand

    OK, in this case the best option is to store the answer in a binary table of XMLType (may be a temporary table if you want to) and run the query from there:

    CREATE TABLE tmp_xml OF XMLType
    XMLType STORE AS SECUREFILE BINARY XML -- default storage in your version
    ;
    
    INSERT INTO tmp_xml VALUES(XMLType(response));
    
    SELECT b.entity_id,
           c.instance_id,
           d.attribute_id,
           d.data_type,
           d.attribute_value,
           d.outcome_style
    FROM tmp_xml t,
         XMLTABLE(
           XMLNamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV"
                        , 'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS "typ")
         , 'SOAP-ENV:Envelope/SOAP-ENV:Body/typ:assess-response/typ:global-instance/typ:entity'
           PASSING t.object_value
           COLUMNS
    ...
    
  • Extract data from xml zipped files.

    Hello
    I have a table with a blob field and because of space constraints, I save my huge xml file in the format compressed in this blob field.
    Is it possible to extract data from the blob field xml?

    Thank you

    Vincent pek

    Yes.

    Have a look here: http://technology.amis.nl/blog/8090/parsing-a-microsoft-word-docx-and-unzip-zipfiles-with-plsql (be aware, "docx" is also a zip file)

  • Creating rules file to extract data from Interface OIC

    Hello.

    I'm new on the BEAK, I worked on the DSN earlier method to extract data from the database.
    Can someone give me the steps of how extract data from the interface of the OIC.

    My database is Oracle 11 g 2 and I use 11.1.2.2 version merger.

    Concerning
    Mahesh Balla

    The format is DBSERVERNAME:PORT / service name
    for example ORACLE11G:1521 / ORCL

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to extract data from a signed pdf that was sent to me.

    I can extract data from a PDF file that is not signed, but how to extract data from a signed PDF? Exporting data option does not work once it is signed. Specifically, I want to combine the data into a csv file, but a PDF signed does not to me.

    Hi evanb92625060,

    It is not possible to extract (using Acrobat |) Collection and management of the PDF to form data) data from a signed PDF form is that it locks all fields in the form.

    Kind regards
    Nicos

  • Extract data from error HFM, float to Numeric?

    Hi all

    We extract data from HFM,.

    HFM-> SQL-> FILE staging

    Our mapping, flow, everything seems fine. When we run this out on the third market errors while extracting data with the following:

    com.hyperion.odi.common.ODIHAppException: arithmetic overflow error conversion float type numeric data.


    We researched and found to increase the logical length should solve this problem.

    Our Source has a length of 16...

    We have increased the logical length of target from 16 to 30, and he rest-error. We even tried 50, 100 for the logical length.

    We are at Version 10.1.3.6.0.

    Any suggestions on how to fix this?

    Thank you!

    Published by: user10678366 on May 22, 2013 13:28

    Have you tried changing the scale of all the columns float, right?

    It can be a ridiculously large number coming from HFM. So, go to store for your data source in ODI and manually change the data type of column type VARCHAR of size like 100 or more. That would force the ODI to create the staging table with columns of characters for the field. Data will be retrieved anyway. Given that you write it in file, type of character should not matter. In addition, if writing to the file fails for any reason, you can do a max on the staging table and find the value problem in the table (while in HFM, you may not be able to do).

  • Extract data from the table on hourly basis

    Hello

    I have a table that has two columns date all the hours of the base and the response time. I want to extract data from the date corresponding previous hourly basis with the response time. The data will be loaded into the table every midnight.

    for example: today date 23/10/2012
    I want to extract data from 22/10/12 00 to the 22/10/12 23

    The sub query pulls the date as demanded, but I'm not able to take the time to answer.

    with one also
    (select min (trunc (lhour)) as mindate, max (trunc (lhour)) as AVG_HR maxdate)
    SELECT to_char (maxdate + (level/25), "dd/mm/yyyy hh24") as a LEVEL CONNECTION dates < = * (1) 24;

    Please help me on this.

    Try this

    SELECT * FROM table_nm
     WHERE to_char(hour,'DD') = to_char(SYSDATE-1,'DD')
    
  • I want to extract data from a PDF using Java

    I would prefer to extract data from a PDF file and convert them to XML. Is there an API that allows to convert a PDF to an Adobe XML format? Ideally, I would like to add a few JAR files to my classpath, similar to PDFBox. I don't want to install a bunch of components side server or something like that.

    Thank you!

    Then Adobe does not offer a solution that meets your needs - sorry.

    Our solution on the server side is our LiveCycle product family which, however, includes a collection of Java APIs.

  • Query to extract data from source DB driver using process mapping pre...

    Hi all
    I have a source for the query to retrieve the data from the source database. Looking for suggestion what could be the best approach to extract data from the source database.using owb 11 GR 1 material.
    I'm in printing, create the process of mapping driver prerequisite for aid to perform immediate with Create table T1 as a sql query. Petition to the sides of the Insert into T1 Select * from Source_Table in the different database.

    Certainly, need to create Db users in the Source database, to get privileges to read the data of source_database.
    Is - this good aproach to or of any other alternative to achieve this.

    Means, create the table in the transit area (desired area, where I am) and using driver mapping process before you run the select query to retrieve data from a data source.

    Would apreciate your previous answer.
    Thank you
    MAK

    You can mark Correct or useful if it solves your purpose.

  • 1074118649 error occurred at niUSRP extract data from Rx (2D CBD) .vi

    Hello

    When I was trying the example of the USRP OR which is "niUSRP EX Rx synchronized to multiple entries (MIMO Expansion)", a mistake is released which is

    1074118649 error occurred at niUSRP extract data from Rx (2D CBD) .vi

    A workflow command has been issued in the past.

    can anyboay help me solve the problem?

    Thank you very much

    Andy

    Hi andy,.

    what you need to do is reversing the Oder river where the screw niUSRP the value Time.vi and niUSRP Trigger.vi configure a1.1ppear. Time of first setting then set up trigger. The example works correctly with version 1.1, since you are using version 1.2, that changes must be made.

    In the example, you can set the clock to standard time (start time = 0) even if you had already triggered the reception. Thus, samples received will be acquired with time stamp later where the error.

    Best regards

Maybe you are looking for

  • An application that has a timer use of blocking?

    Y at - it an app that has a timer to block the use of your whole computer?

  • Everything takes so long to load always worked so far great

    I have an ipad. It worked very well in the past.  All of a sudden it takes so long to load

  • No sound from HP Envy

    I bought a laptop HP envy last October, and for about a month before, no sound is able to play.  i have gone through the many messages of troubleshooting and tried to restart, shut down, plugged the headphones (which doesn't work anymore), etc.  I ho

  • has a number of phone call 02030263248 said Microsoft?

    I had a phone call tonight from a person called james he said only he I have problems with my and it on a behavior of microsoft could fix his phone he gave me, there were 02030263248 I can't find it concerning Ray

  • How to add maintenance windows

    Hello I wonder how or where in the Foglight interface to add windows maintenace. Also, what can they be added to (host, database instance, etc.). Recurring of the CAN and the other windows mainteancnace added time? I am struggling to find information