Tables 2D to csv file

Hello

I would like to generate a CSV from tables that I filled in labview. I put an example of csv file that I want to get and the VI tried to code. Can someone help me fix my VI for the csv file in the right format?

Thank you

Zied

If you want commas, then set the delimiters to be a comma.  It's a simple entry in the spreadsheet file write which by default is a tab.

Tags: NI Software

Similar Questions

  • Creating a table to a csv file

    I use the JDeveloper 11.1.1.6.

    I'm looking to recover data to a .csv file and load it into a custom table made just for the data in the file.

    I managed to load the csv file in a data control with a Service URL data control. I wonder how to take data from the data control and place it in a Java object so that I can make the dynamic creation of sql create statement table. I know how to do dynamic creation - it's just to access the data of the data control to which I am at this point.

    If there is a better way to do it, I would be also open to it! Thank you!

    Published by: Jim W. 26 September 2012 08:00

    I found this documentation. Is not myself. The documentation is newer than your version, so it may not work.

    http://docs.Oracle.com/CD/E24382_01/Web.1112/e16182/bcquerying.htm

    Stuart

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • Export data from Oracle table to a .csv file by putting a condition on the value of a column

    Hello gurus,

    I have the following data in my table

    ROWID name version date

    1 oracle 11.1 20/12/2013

    Java 2 7 12/10/2011

    1 oracle 12.1 28/12/2013

    1 oracle 10.2 12/06/2010

    Now I need a general sql/plsql code who wrote the columns with a specific value to the rowid.

    My output should look like

    1,Oracle,11.1,12/20/2013

    1,Oracle,12.1,12/28/2013

    1,Oracle,10.2,06/12/2010

    Here, I want to pass the value as a parameter dynamically

    Can someone help me with the sql/plsql.

    Hello

    If you use the IN operator:

    Select rowid_col

    || ',' || name_col

    || ',' || version_col

    || ',' || To_char (date_col, 'HH24:MI:SS of Mon-DD-YYYY') AS csv_text

    from your_table

    where rowid_col IN (& input_values);

    then & input_values can be a unique number (e.g. 1) or a list separated by commas (for example, 1,2,3) numbers.  Don't put NO space around the comma.

  • Deployment, customization and modification of virtual machines to a csv file

    Hello

    With lots of help from Eco91, I realized the script below.  He deploys a series of virtual machines at the same time, waiting that they to initialize and make customization of the OS, and then changes the basis of networking within the OS and also changes in the Description of the network:

    $esxName = 'esxqac4s01. MYDOMAIN.local ".
    $template = "TEST_W2K8R2ENTSP1".
    $datastore = "NFS_VM_Storage01".
    $newVmList = @)
    @{"Name" = 'TESTSVR1'; 'IP' = "10.244.186.136"; 'Mask' = "255.255.255.0". "Gateway" = "10.244.186.1"; "DNS" = @("10.244.37.25", "10.244.37.26"); "NetworkName" = "VLAN186_QA"; },
    @{"Name" = 'TESTSRV2'; 'IP' = "10.244.186.137"; 'Mask' = "255.255.255.0". "Gateway" = "10.244.186.1"; "DNS" = @("10.244.37.25", "10.244.37.26"); "NetworkName" = "VLAN186_QA"; },
    @{"Name" = 'TESTSRV3'; 'IP' = "10.244.186.138"; 'Mask' = "255.255.255.0". "Gateway" = "10.244.186.1"; "DNS" = @("10.244.37.25", "10.244.37.26"); "NetworkName" = "VLAN186_QA"; },
    @{"Name" = 'TESTSRV4'; 'IP' = "10.244.186.139"; 'Mask' = "255.255.255.0". "Gateway" = "10.244.186.1"; "DNS" = @("10.244.37.25", "10.244.37.26"); "NetworkName" = "VLAN186_QA"; }
    )
    $custSpec = "TEST_W2K8R2ENTSP1".
    $location = "_Tobedeleted".
    $taskTab = @ {}
    SE connect-VIServer-Server vvcqa01yyz. MYDOMAIN.local - user 'MYDOMAIN\MYACCOUNT' - password MYPASSWORD
    # Create all virtual machines specified in $newVmList
    {foreach ($VM to $newVmList)
    $taskTab [(nouvelle-VM-nommez $VM.)] Name - VMHost (Get-VMHost-name $esxName) - model $template - $datastore - OSCustomizationSpec $custSpec Datastore - location $location - RunAsync). ID] = $VM. Name
    }

    # Start each virtual machine that is over
    $runningTasks = $taskTab.Count
    While ($runningTasks - gt 0) {}
    Get-job | % {
    If ($taskTab.ContainsKey ($_.)) (ID) - and $_. State - eq 'Success') {}
    Get - VM $taskTab [$_] ID] | Start-VM
    $taskTab.Remove ($_.) ID)
    $runningTasks-
    }
    else if ($taskTab.ContainsKey ($_.)) (ID) - and $_. State - eq "Error") {}
    $taskTab.Remove ($_.) ID)
    $runningTasks-
    }
    }
    Start-Sleep - seconds 5
    }


    # START HERE
    # Wait for customization of the OS
    Start-Sleep - seconds 300
    # Customize network
    {foreach ($VM to $newVmList)
    Get-NetworkAdapter - VM $VM. Name | Together-NetworkAdapter NetworkName - $VM.NetworkName - confirm: $false
    Get-VM-name $VM. Name | 'Administrator' Get-VMGuestNetworkInterface - Guestuser - GuestPassword ' R! m2009 |? {$_.name - eq "Connect to network Local 4"} | Game-VMGuestNetworkInterface - Guestuser 'Administrator' - GuestPassword ' R! m2009"- IPPolicy - static IP $VM. $VM.Netmask - IP-Gateway $VM subnet mask. Gateway - DNS $VM. DNS
    }

    I would now like to replace the $VMlist variable and put rather information eVM th to a .csv file.  Any suggestions?

    Hello

    assuming this is your csv file

        "name","ip","netmask","gateway","dns","networkName"    "TESTSRV1","10.244.186.136","255.255.255.0","10.244.186.1","10.244.37.25;10.244.37.26","VLAN186_QA"
    

    you have a problem. Impossible to save all the tables in a csv file and do powershell natively recognize them.

    Instead, use a delimiter custom (not the same csv uses!) and split - to import - in a table. Look at the semicolon between two dns servers.

    $newVmList = import-Csv test.csv | Select-Object - property 'name', 'ip', 'mask', 'bridge', @{Name = "dns"; {Expression = {$_ .dns-split ';'}}, "networkName".

    The object resulting looks like this

        name       : TESTSRV1    ip         : 10.244.186.136    netmask    : 255.255.255.0    gateway    : 10.244.186.1    dns        : {10.244.37.25, 10.244.37.26} <-- Array    networkName: VLAN186_QA
    

    Concerning

    Emanuel

  • External table with the empty file

    Hello

    My version of db: Oracle 11 g

    I have a csv file that is empty.

    I created an external table the empty csv file.

    When I run:

    Select count (*) in the externaltblname;

    It returns 1.

    It should return 0 to the right.

    In the definition, I specified "SKIP 1.

    But he always returns 1.

    When I use this external table to load into a table target. It loads a single row with null values.

    How to solve this problem. Please advice.

    What works for me is the following (t_ext points to a blank csv):

    SQL > select count (field) in the t_ext;

    COUNT (FIELD)

    ------------

    1

    1 selected line.

    SQL > select ascii (field) in the t_ext;

    ASCII (FIELD)

    ------------

    13

    1 selected line.

    SQL > select count (replace (field, chr (13))) of t_ext;

    COUNT (REPLACE (FIELD, CHR (13)))

    -----------------------------

    0

    1 selected line.

  • Export a table for the flat file and must insert sysdate in flat file column

    Hi, I created an interface allowing to export an oracle table to a csv file. All the columns in the table work well. Then I need to insert the sysdate in a column in the csv file.

    I made the map as working in the transit area, implementation is to_char(sysdate,'dd/mm/yyyy'). But the result is insert in column 14.

    I tried to create a variable refreshing that choose double to_char(sysdate,'dd/mm/yyyy'), maps then as the csv file column, but he only insert 1 row and the format is YYYYMMDD.

    I tried to use SELECT '< % = odiRef.getSysDate ("YYYYMMDD") % >' double to the variable and it also only insert a line in the flat file.

    I used the same methodology in ODI10g, it works fine.

    So, I wonder how it can be implemented in 11g.

    Thank you

    It turns out that I used the snapshot_date as a field name, it may be a reserved word. After that I changed the name of the field, it works fine. Thank you.

  • Read the csv file in the Windows directory

    Hi all

    I have a requirement to fill an Oracle table with the CSV file in the Windows directory.
    Please help me to achieve this goal.

    Thank you.

    Published by: Amit1cs on June 4, 2013 08:46

    Then I suggest you mark this thread as answered and repost on the SQL/PLSQL forum. This forum is for Developer SQL related questions.

    Good luck in your task!

  • Import CSV file and the conversion of an array

    Hi all

    I'm working on a site that is to import a CSV (comma separated values) published via actionscript 3.0 URLloader().  Now I just try to get actionscript to successfully enter the data imported from the CSV file as a table, then the CSV file has 1 single cell that contains "athleticMaroon, charcoal, colonialBlue, kellyGreen, fullColor".

    Here is the code I use:

    create table

    var shirtLiveIntense_btn_Colors:Array = new Array();

    run the import from CSV data

    URLLoaderCSV();

    shirtLiveIntense_btn.addEventListener (MouseEvent.CLICK, selectingLogo);

    function selectingLogo(e:MouseEvent):void {}

    trace ("current logo');

    var colorButtons:Array = this [e.currentTarget.name + "_Colors"];

    for (var i: uint = 0; i < colorButtons.length; i ++) {}

    .Ivar colorButtons [i] = i;

    colorButtons [i] .addEventListener (MouseEvent.CLICK, shirtColorOption);

    }

    }

    CSV data import function

    function URLLoaderCSV() {}

    var loader: URLLoader = new URLLoader();

    configureListeners (loader);

    var request: URLRequest = new URLRequest ("https://docs.google.com/spreadsheet/pub?hl=en_US & hl = en_US & key = 0AlJnOKOffTSxdFk0RVlEUTVHeF9 DMHZfZ0JzSkJjZFE & single = true & gid = 1 & output = csv");

    try {}

    Loader.Load (request);

    } catch (error: Error) {}

    trace ("unable to load requested document.");

    }

    }

    function configureListeners(dispatcher:IEventDispatcher):void {}

    dispatcher.addEventListener (Event.COMPLETE, completeHandler);

    dispatcher.addEventListener (Event.OPEN, openHandler);

    dispatcher.addEventListener (ProgressEvent.PROGRESS, progressHandler);

    dispatcher.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

    dispatcher.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);

    }

    function completeHandler(event:Event):void {}

    var loader: URLLoader = URLLoader (event.target);

    trace ("completeHandler:" + loader.data);

    shirtLiveIntense_btn_Colors.push (loader.data);

    }

    function openHandler(event:Event):void {}

    trace ("openHandler:" + event);

    }

    function progressHandler(event:ProgressEvent):void {}

    trace ("progressHandler loaded:" + event.bytesLoaded + "total:" + event.bytesTotal);

    }

    function securityErrorHandler(event:SecurityErrorEvent):void {}

    trace ("securityErrorHandler:" + event);

    }

    function httpStatusHandler(event:HTTPStatusEvent):void {}

    trace ("httpStatusHandler:" + event);

    }

    function ioErrorHandler(event:IOErrorEvent):void {}

    trace ("ioErrorHandler:" + event);

    }

    Here is the result:

    openHandler: [event type = "open" bubbles = false cancelable = false eventPhase = 2]

    progressHandler loaded: 57 total: 0

    httpStatusHandler: [HTTPStatusEvent type = "httpStatus" bubbles = false cancelable = false eventPhase = 2 status = 200]

    completeHandler: athleticMaroon, colonialBlue, kellyGreen, charcoal, fullColor

    chosen logo

    ReferenceError: Error #1056: cannot create ivar String property.

    at main_fla::MainTimeline/selectingLogo()

    Review of results of release, I see it's clearly to load the data from the CSV file correctly, but what I think it does is important data as a single string, aka 'athleticMaroon, charcoal, colonialBlue, kellyGreen, fullColor' and push for shirtLiveIntense_btn_Colors:Array = new Array().  But, as I see the error selectingLogo(e:MouseEvent) service cannot treat the table because it contains a string of.

    If I switch to shirtLiveIntense_btn_Colors.push (loader.data); with shirtLiveIntense_btn_Colors.push (charcoal, colonialBlue, kellyGreen, athleticMaroon, fullColor); everything works like a charm, but I need the table to assign dynamic in the CSV file data

    Can anyone help to get imported CSV data to strings pushed a table accessible?

    Thank you!


    It is an error caused by:

    var colorButtons:Array = this [e.currentTarget.name + "_Colors"];

    for (var i: uint = 0; i

    .Ivar colorButtons [i] = i;

    colorButtons [i] .addEventListener (MouseEvent.CLICK, shirtColorOption);

    }

    your table is an array of strings.  If you try to force these strings into objects on the timeline that contains your code, use array notation:

    var colorButtons:Array = this [e.currentTarget.name + "_Colors"];

    for (var i: uint = 0; i

    This .ivar [colorButtons [i]] = i;

    This [colorButtons [i]] .addEventListener (MouseEvent.CLICK, shirtColorOption);

    }

  • load data from csv file into table

    Hello

    I'm working on Oracle 11 g r2 on UNIX platform.

    We have an obligation to load data to the table to a flat file, but on one condition, need to make the comparison between filed primary key if the file is available then update another filed and if the recording is not available, we need to insert.

    How can achieve us.

    SQLLoader to load the CSV file data into a staging Table.

    Then use the MERGE SQL command to the lines of insert/update of table setting for the target table.

    Hemant K Collette

  • SQL Loader loading data into two Tables using a single CSV file

    Dear all,

    I have a requirement where in I need to load the data into 2 tables using a simple csv file.

    So I wrote the following control file. But it loads only the first table and also there nothing in the debug log file.

    Please suggest how to achieve this.

    Examples of data

    Source_system_code,Record_type,Source_System_Vendor_number,$vendor_name,Vendor_site_code,Address_line1,Address_line2,Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Control file script

    ================

    OPTIONS (errors = 0, skip = 1)
    load data
    replace
    in the table1 table:
    fields ended by ',' optionally surrounded "" "
    (
    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"
    Record_type tank "ltrim (rtrim (:Record_type)),"
    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    )
    in the Table2 table
    1 = 1
    fields ended by ',' optionally surrounded "" "
    (
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"
    Address_line1 tank "ltrim (rtrim (:Address_line1)),"
    Address_line2 tank "ltrim (rtrim (:Address_line2)),"
    Address_line3 tank "ltrim (rtrim (:Address_line3)).
    )

    the problem here is loading into a table, only the first. (Table 1)

    Please guide me.

    Thank you

    Kumar

    When you do not provide a starting position for the first field in table2, it starts with the following after a last referenced in table1 field, then it starts with vendor_site_code, instead of $vendor_name.  So what you need to do instead, is specify position (1) to the first field in table2 and use the fields to fill.  In addition, he dislikes when 1 = 1, and he didn't need anyway.  See the example including the corrected below control file.

    Scott@orcl12c > test.dat TYPE of HOST

    Source_system_code, Record_type, Source_System_Vendor_number, $vendor_name, Vendor_site_code, Address_line1, Address_line2, Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Scott@orcl12c > test.ctl TYPE of HOST

    OPTIONS (errors = 0, skip = 1)

    load data

    replace

    in the table1 table:

    fields ended by ',' optionally surrounded "" "

    (

    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"

    Record_type tank "ltrim (rtrim (:Record_type)),"

    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"

    $vendor_name tank "ltrim (rtrim (:Vendor_name)).

    )

    in the Table2 table

    fields ended by ',' optionally surrounded "" "

    (

    source_system_code FILL (1) POSITION.

    record_type FILLING,

    source_system_vendor_number FILLING,

    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"

    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"

    Address_line1 tank "ltrim (rtrim (:Address_line1)),"

    Address_line2 tank "ltrim (rtrim (:Address_line2)),"

    Address_line3 tank "ltrim (rtrim (:Address_line3)).

    )

    Scott@orcl12c > CREATE TABLE table1:

    2 (Source_system_code VARCHAR2 (13),)

    3 Record_type VARCHAR2 (11),

    4 Source_System_Vendor_number VARCHAR2 (27),

    5 $vendor_name VARCHAR2 (11))

    6.

    Table created.

    Scott@orcl12c > CREATE TABLE table2

    2 ($vendor_name VARCHAR2 (11),)

    3 Vendor_site_code VARCHAR2 (16).

    4 Address_line1 VARCHAR2 (13),

    5 Address_line2 VARCHAR2 (13),

    Address_line3 6 VARCHAR2 (13))

    7.

    Table created.

    Scott@orcl12c > HOST SQLLDR scott/tiger CONTROL = test.ctl DATA = test.dat LOG = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Thu Mar 26 01:43:30 2015

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 1

    TABLE1 table:

    1 row loaded successfully.

    Table TABLE2:

    1 row loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > SELECT * FROM table1

    2.

    RECORD_TYPE SOURCE_SYSTEM_VENDOR_NUMBER $VENDOR_NAME SOURCE_SYSTEM

    ------------- ----------- --------------------------- -----------

    Victor Ven001 new Vinay

    1 selected line.

    Scott@orcl12c > SELECT * FROM table2

    2.

    $VENDOR_NAME VENDOR_SITE_CODE ADDRESS_LINE1 ADDRESS_LINE2 ADDRESS_LINE3

    ----------- ---------------- ------------- ------------- -------------

    Vinay Vin001 abc def xyz

    1 selected line.

    Scott@orcl12c >

  • Read data from the Table and load it into the csv file

    Hello

    I would like to read a table (select * from employees) and load the data into a csv file.

    What methods are available?

    Records will be at high volume.

    Thank you

    If it is to do a lot, use APEX.

    Create a new page with an interactive report based on the SQL code you want. When you go to download Excel, it is actually a CSV file.

    If it is large, you may need to go on the FILE_UTL road.

    If it is only once, use an interface such as SQL tool * or SQL * Developer.

    If it's a learning experience, you must do all three.

    MK

  • ODI - read CSV file and write to the Oracle table

    Hello world

    After 4 years, I started to work again with ODI, and I'm completely lost.

    I need help, I don't know what to use for each step, interfaces, variables, procedures...

    What I have to do is the following:

    (1) reading a CSV file-> I have the topologies and the model defined

    (2) assess whether there is a field of this CSV file in TABLE A-> who do not exist in the table is ignored (I tried with an interface joining the csv with the TABLE model a model and recording the result in a temporary data store)

    Evaluate 3) I need to update TABLE C and if not I need to INSERT if another field that CSV exists in TABLE B-> if there

    Could someone help me with what use?

    Thanks in advance

    Hi how are you?

    You must:

    Create an interface with the CSV template in the source and a RDBM table in the target (I'll assume you are using Oracle). Any type of filter or the transformation must be defined to be run in the stadium. (you must use a LKM for SQL file and add an IKM Sql control (it is best to trim them and insert the data when it cames to a file if you want after this process, you may have an incremental update to maintain history or something like that).)

    For validation, you will use a reference constraints in the model of the oracle table: (for this you need a CKM Oracle to check constraints)

    Then, you must select the table that you sponsor and in the column, you choose which column you will match.

    To article 3, you repeat the above process.

    And that's all. Pretty easy. If you do not have the two tables that you need to use your validation that you need to load before loading the CSV file you need valid.

    Hope this can help you

  • How can I extract the data from a csv file and insert it into an Oracle table? (UTL_FILE)

    Hi, please help me whit this query

    Im trying to extrate the data in a file csv and im using the ULT_FILE package
    I have this query that read the file and the first field, but if the field has a different length does not work as it should

    For example if I had this .csv file:

    1, book, laptop

    2, pen, Eraser

    3, notebook, paper

    And in the table, I had to insert like this

    ID descrption1 description2

    laptop 1 book

    Eraser pen 2

    paper laptop 3

    For now, I have this query, which displays only with DBMS:

    Declare

    -Variables

    Cadena VARCHAR2 (32767).

    Vfile UTL_FILE. TYPE_DE_FICHIER;

    Dato varchar2 (200);                                             -Date

    dato1 varchar2 (200);

    dato2 varchar2 (200);

    Identifier varchar2 (5): = ', ';                             -Identifier (en)

    v_ManejadorFichero UTL_FILE. TYPE_DE_FICHIER;     -For exceptions

    -Table variables

    I_STATUS GL_INTERFACE. % OF STATUS TYPE.

    I_LEDGER_ID GL_INTERFACE. TYPE % LEDGER_ID;

    I_USER_JE_SOURCE_NAME GL_INTERFACE. TYPE % USER_JE_SOURCE_NAME;

    I_ACCOUNTING_DATE GL_INTERFACE. TYPE % ACCOUNTING_DATE;

    I_PERIOD_NAME GL_INTERFACE. TYPE % PERIOD_NAME;

    I_CURRENCY_CODE GL_INTERFACE. CURRENCY_CODE % TYPE;

    I_DATE_CREATED GL_INTERFACE. DATE_CREATED % TYPE;

    I_CREATED_BY GL_INTERFACE. CREATED_BY % TYPE;

    I_ACTUAL_FLAG GL_INTERFACE. TYPE % ACTUAL_FLAG;

    I_CODE_COMBINATION_ID GL_INTERFACE. TYPE % CODE_COMBINATION_ID;

    I_ENTERED_DR GL_INTERFACE. TYPE % ENTERED_DR;

    I_ENTERED_CR GL_INTERFACE. TYPE % ENTERED_CR;

    I_ACCOUNTED_DR GL_INTERFACE. TYPE % ACCOUNTED_DR;

    I_ACCOUNTED_CR GL_INTERFACE. TYPE % ACCOUNTED_CR;

    I_TRANSACTION_DATE GL_INTERFACE. TRANSACTION_DATE % TYPE;

    I_REFERENCE1 GL_INTERFACE. REFERENCE1% TYPE;

    I_REFERENCE2 GL_INTERFACE. REFERENCE2% TYPE;

    I_REFERENCE3 GL_INTERFACE. REFERENCE3% TYPE;

    I_REFERENCE4 GL_INTERFACE. REFERENCE4% TYPE;

    I_REFERENCE5 GL_INTERFACE. REFERENCE5% TYPE;

    I_REFERENCE10 GL_INTERFACE. REFERENCE10% TYPE;

    I_GROUP_ID GL_INTERFACE. GROUP_ID % TYPE;

    BEGIN

    Vfile: = UTL_FILE. FOPEN ('CAPEX_ENVIO', 'comas.csv', 'R');

    loop

    UTL_FILE. GET_LINE(Vfile,Cadena,32767);

    dato1: = substr (cadena, instr(cadena, identificador,1,1)-1, instr(cadena, identificador,1,1)-1);

    dato2: = substr (cadena, instr (cadena, identifier, 1, 1) + 1, instr(cadena, identificador,3,1)-3);

    dbms_output.put_line (dato1);

    dbms_output.put_line (dato2);

    -The evidence

    -dbms_output.put_line (cadena);

    -dbms_output.put_line (substr (dato, 3, instr(dato, identificador,1,1)-1));

    -dbms_output.put_line (substr (dato, instr (dato, identifier, 1, 2) + 1, instr(dato, identificador,1,1)-1));

    -dbms_output.put_line (substr (cadena, 1, length (cadena)-1));

    end loop;

    UTL_FILE. FCLOSE (Vfile);

    -----------------------------------------------------------------------------------EXCEPTIONS------------------------------------------------------------------------------------------------------------------------------------------------------------

    EXCEPTION

    When no_data_found then

    dbms_output.put_line ('Todo Correcto');

    When utl_file.invalid_path then

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20060,'RUTA DEL ARCHIVO NULLIFIED: (');)

    WHEN UTL_FILE. INVALID_OPERATION THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR ('-20061,'EL ARCHIVO NO PUDO SER ABIERTO ");

    WHEN UTL_FILE. INVALID_FILEHANDLE THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20062, 'INVALIDO MANAGER');

    WHEN UTL_FILE. WRITE_ERROR THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20063, 'ESCRITURA ERROR');

    WHEN UTL_FILE. INVALID_MODE THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20064, 'MODO INVALIDO');

    WHEN UTL_FILE. INTERNAL_ERROR THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20065, 'ERROR INTERNO');

    WHEN UTL_FILE. READ_ERROR THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20066, 'LECTURA ERORR');

    WHEN UTL_FILE. FILE_OPEN THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR ('-20067,'EL ARCHIVO ARE ESTA ABIERTO ");

    WHEN UTL_FILE. THEN ACCESS_DENIED

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20068, 'REFUSED ACCESS');

    WHEN UTL_FILE. DELETE_FAILED THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20069, 'OPERACIÓN BORRADO FALLO');

    WHEN UTL_FILE. RENAME_FAILED THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20070, 'OPERATION SOBREESCRITURA FALLO');

    END;

    Hello

    Try something like this:

    POS1: = INSTR (cadena, idntificador, 1, 1);
    POS2: = INSTR (cadena, idntificador, 1, 2);

    ID: = SUBSTR (cadena, 1, pos1 - 1);
    description1: = SUBSTR (cadena, pos1 + 1, (pos2 - pos1)-1);
    Description2: = SUBSTR (cadena, pos2 + 1);

    where pos1 and pos2 are numbers.

    Rather than use UTL_FILE, consider creating an external table.  You won't have to write any PL/SQL, and this means that you won't be tempted to write a bad article of EXCEPTION.

  • How to import data from CSV file in a table using oracle forms

    Hello

    I have a CSV file and I want to insert in the oracle database in a table by using a button under forms of oracle.
    the user can select the CSV file by using the open dialog box.
    can someone help me find the method to import and select the client machine file?

    THX.

    You want to import the contents of the file or the file itself? I assume that you want to import the contents of the file. For this, there are really only two options to make an Excel (.csv) file and import into shapes; WebUtil or a JavaBean. Some examples of both:
    WebUtil: How to read an Excel file in a form of Oracle
    Oracle is CJP/BEAN - project Excel

    Try them both and see which works best for you.

    Craig...

Maybe you are looking for

  • Selection of e-mail under macOS Sierra problems

    An old problem reappeared in the new MacOS Sierra... I can't select the emails by sender or subject in the native Mail application... someone knows the solution? I closed all applications, I rebooted the computer... nothing changed...

  • What graphics card do you have used with the motherboard Asus A8AE THE?

    I have an old a1210n with a motherboard A8AE THE with a PCIe x 16 slot 1.0.   I would like to know what graphics cards does anyone have successfully run on this motherboard (see list of models of computer below)?  Unfortunately, which should theoreti

  • Connection WRT310N problems

    Recently (in the last month or almost) I had problems with my router.  My connection suddenly stops working and I have to reconnect to the internet, I will join the game servers with ping around 20-40 and get "connection interrupted" put warning all

  • To come back and between Windows Vista and Windows XP

    My computer is running W-Vista and would like to know if I change the hard drive Windows XP, I have to return to my hard drive with Windows Vista to causing problems. I need to do for compatibility reasons. Concerning John JohnD

  • XPS 8300 Windows 10 and not Internet

    With 10 Windows on my computer xps 8300 when I connect the Ethernet cable to the computer I have no internet.  Can someone help me?  For some reason I can connect wireless but do receive as 1 MB down and upward so that with a normal cable I receive a