Read the csv file from plsql

Hi,
I have data in csv file. I need to read the data from that file and at the same time i need to omit first row(ie column header). How can i do this...?
Please help me....asap
Thanks in advance....

BluShadow wrote:
Nuerni wrote:
Just read-in the csv-file line by line and dismiss the first line; use a tokenizer for each line to get the semicolon-delimited field of every line; now fill your record/table or anything else with the tokens...
There's an tokenizer-example in this forum I've posted recently:
Re: Comma separated values to columns
That's a lot of hard work to achieve something that is built into SQL*Loader and External Tables. All that's needed is the SKIP <n> keyword included in the control definition for those.You're right!
If SQL*Loader and External Tables is an available option for SHAN01 then try use it; if not then I would consider the tokenizer-method...

Similar Messages

  • Reading a CSV file from server

    Hi All,
    I am reading a CSV file from server and my internal table has only one field with lenght 200. In the input CSV file there are more than one column and while splitting the file my internal table should have same number of rows as columns of the input record.
    But when i do that the last field in the internal table is appened with #.
    Can somebody tell me the solution for this.
    U can see the my code below.
    data: begin of itab_infile occurs 0,
             input(3000),
          end of itab_infile.
    data: begin of itab_rec occurs 0,
             record(200),
          end of itab_rec.
    data: c_comma(1) value ',',
            open dataset f_name1 for input in text mode encoding default.
            if sy-subrc <> 0.
              write: /, 'FILE NOT FOUND'.
              exit.
            endif.
    do
      read dataset p_ipath into waf_infile.
      split itab_infile-input at c_sep into table itab_rec.
    enddo.
    Thanks in advance.
    Sunil

    Sunil,
    You go not mention the platform on which the CSV file was created and the platform on which it is read.
    A common problem with CSV files created on MS/Windows platforms and read on unix is the end-of-record (EOR) characters.
    MS/Windows usings <CR><LF> as the EOR
    Unix using either <CR> or <LF>
    If on unix open the file using vi in a telnet session to confirm the EOR type.
    The fix options.
    1) Before opening the opening the file in your ABAP program run the unix command dos2unix.
    2) Transfer the file from the MS/Windows platform to unix using FTP using ascii not bin.  This does the dos2unix conversion on the fly.
    3) Install SAMBA and share the load directory to the windows platforms.  SAMBA also handles the dos2unix and unix2dos conversions on the fly.
    Hope this helps
    David Cooper

  • Not able to read the wsdl file from server Premature EOF encounter

    Hi All,
    I am facing issue while accessing a web Service from server. Here is the clear view about it.
    I created a simple SyncBpel process in a composite and deployed in to the server and it is working fine. Later i created a new Asyn bpel process in a composite and in the external reference i dragged a web Service and imported the wsdl url from server of the SyncBpel and wired the Asynbpel process to webserive .
    Now here i am facing peculiar behavior which i am not able to trace it out.
    1) For the first time when i import the url of syncBpel from the server i am not facing any error and it is working fine as expected but when i close the Jdeveloper and open it i am not able to user the web Service and it is saying as "Not able to read the wsdl file from server Premature EOF encounter"
    2)When i close and open the Jdeveloper i can see the url of the wsdl which imported in webserver is changing from http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep?WSDL to http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/BPELsync.wsdl
    3)when I open and see the url http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep?WSDL I can see the soap address as *<soap:address location="http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel!1.0*soa_5cfb8416-c106-40a2-a53b-9054bbe04b9c/bpelsync_client_ep"/>*
    I don’t understand why the soap end contains “*soa_5cfb8416-c106-40a2-a53b-9054bbe04b9c” and this kind of url for soap address is coming to all the bpel process which I am deploying in the server.
    I checked the in Jdeveloper where webproxy is uncheck and the server is also up but still I am facing issue of reading the error.
    Can someone please help in resolving the issue.
    I am using SOA 11g 11.1.1.5 and Jdeveloper 11.1.1.5
    Many thanks.
    Tarak
    Edited by: user11896572 on Jan 17, 2012 5:22 PM

    Hi,
    Setting default from the jdeveloper -
    During composite deployment from Jdeveloper (wizard driven), you will be given an option to choose the version of the composite and there will also be an option for you to choose if the composite needs to be deployed as default.
    Setting default from the em console -
    After deploying a composite, login to the em console and click on the composite that you want to set as default, and you will find a tab - "Set as Default". please note that this tab will not be seen, if the composite is already set as default.
    Refer -
    http://docs.oracle.com/cd/E12839_01/integration.1111/e10226/soacompapp_mang.htm
    8.2 Managing the State of Deployed SOA Composite Applications
    Thanks

  • How to make SSIS packages automatically read the input file from a path?

    Currently I am using a SSIS package to read data from a .dat file and load it into SQL Server tables.
    I am placing the input .dat file on the desktop. In the connection manager -> Browse option, I am pointing this file to create connection.
    The file naming convention is like - aSNAP_Data_20140926_P-2014-09-26_07.02.36
    However, I need the SSIS package to automatically read the input file from a folder which is located in a remote server. This folder has lots of files where input files are added on a daily basis with the date value in the file name as mentioned above.
    I want to schedule the SSIS package to run daily and take the latest file in the folder based on the date.
    Please let me know how to do it. Any help would be highly appreciated.....
    Thanks in advance.

    Hi SQL_SSIS_Dev,
    According to your description, you want to get the latest file from a path to a SQL Server table. After testing the issue in my environment, we can refer to the following steps to achieve your requirement:
    Create two variables, VarFolderPath stores the folder path in which our files exist, VarFileName hold the value of most recent File Name.
    Drag a Script Task from SSIS Toolbox to Control Flow Pane, then select “User::VarFolderPath” as ReadOnlyVariables, select “User::VarFileName” as ReadWriteVariables.
    Then Edit Script with the C# code below:
    Add “using System.IO;” into namespace.
    Add the code below under Main function:
    var directory= new DirectoryInfo(Dts.Variables["User::VarFolderPath"].Value.ToString());
                FileInfo[] files = directory.GetFiles();
                DateTime lastModified = DateTime.MinValue;
                foreach (FileInfo file in files)
                    if (file.LastWriteTime > lastModified)
                        lastModified = file.LastWriteTime;
                        Dts.Variables["User::VarFileName"].Value = file.ToString();
    Drag a Data Flow Task to Control Flow Pane and connect to Script Task.
    In the Data Flow Task, drag a Flat File Source with a file in the source folder as all the files have same structure as the File name.
    Add the property below the Flat File Connection Manger expression:
    Property: ConnectionString      Expression: @[User::VarFolderPath] +"\\"+ @[User::VarFileName]
    Drag an OLE DB Destination that connect to the Flat File Source, then configure a table to store the data.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Elements 10 can not read the raw-files from my Sony a-57

    The raw-converter is updatet to 6.7 and according to Adobe it should be able to read Sony a-57. When I got Elements 10, a file had to be moved so it could read the raw-files from my Minolta 5D. Can this be the cause of the problem ? What to do ?

    What version of ACR does Help / About Plug-ins… / Camera Raw… show you, and is more than one Camera Raw listed in About Plug-ins…?

  • How to read the CSV Files into Database Table

    Hi
    Friends i have a Table called tblstudent this has the following fields Student ID, StudentName ,Class,Father_Name, Mother_Name.
    Now i have a CSV File with 1500 records with all These Fields. Now in my Program there is a need for me to read all these Records into this Table tblstudent.
    Note: I have got already 2000 records in the Table tblstudent now i would like to read all these CSV File records into the Table tblstudent.
    Please give me some examples to do this
    Thank your for your service
    Cheers
    Jofin

    1) Read the CSV file line by line using BufferedReader.
    2) Convert each line (record) to a List and add it to a parent List. If you know the columns before, you might use a List of DTO's.
    3) Finally save the two-dimensional List or the List of DTO's into the datatable using plain JDBC or any kind of ORM (Hibernate and so on).
    This article contains some useful code snippets to parse a CSV: http://balusc.xs4all.nl/srv/dev-jep-csv.html

  • Installation: my adobe elements version 12 is unable to read the raw files from my canon camera 70D.

    my adobe elements version 12 is unable to read the raw files from my canon camera 70D.

    You need Camera Raw 8.2 or higher.
    Elements 12 shipped with 8.1.
    Click Help > Updates to update Camera Raw

  • Pls help. My Camera Raw, CS6 and Lightroom won't read the NEF files from D610.

    I recently upgraded to Nikon D610 and the NEF files were not readable from my old version of Camera Raw, CS6 and Lightroom. So downloaded the recommended upgrades and I now have Camera Raw 8.4.0.199; Lightroom 5.3; CS6 13.01. But still did not read my D610 NEF's. Please help. Thanks.

    oh wait, i got it. Just in case for those who will have the same scenario. I downloaded the NEF files from my D610 using the old ViewNX 2.1 software and that was the cause of incompatibility. So i upgraded my ViewNX to 2.9 and downloaded my images again. And it worked this time.

  • How to read the s2p file from Agilent 5071B ENA and to save in pc ?, also need to run this continuously and to save s2p file in certain period of time ?

    I interfaced ENA 5071B using labview with agena vi.  I need to save the s2p file from the network analyzer.. I am requesting you guys to help me and pls suggest wat kind of vi i need to use from agena.....
    Thanks

    The PNA driver does not have the vi to full support what you want. The SCPI commands to do what you want are:
    MMEMTOR:TRAC:FORMNP MA; - to format the data in Mag dB Phase linear.
    CALC1ATA&colon;SNPORTsave '1,2' , 'local file name on PNA file system.s2p' - to create  PNA local files of s2p data
    MMEMory:TRANsfer? 'controllerfilename.s2p'  - to transfer the datafile from PNA to test controller using GPIB block transfer.
    You will have to create these SCPI commads and VI's for yourself as the driver does not have them built in.
    Good luck.

  • Apperture doesn't read the RAW files from my new Camera

    Hi, Apperture doesn't read the RAW files downloaded from my new Camera Fujifilm X-S1. What options do I have to work with .RAF (Fujifilm RAW)?
    I was thinking about using RAW Converter PRO but it cannot upload the full information contained into the RAF file. Maybe there is another Program I can use until Aperture includes my camera in its DB.
    Greats!

    I've been a loyal Apple user for 20 years and have been using Aperture for the last 2 years. The X-pro came out a YEAR ago and still no x-trans sensor support and yet Lightroom by Adobe and Capture One now has RAW support.I've had to switch to the Lightroom trial as I have a busy studio in hope that Apple might bother with me but again no reply to my emails.
    If I have to purchase Lightroom I will probably not come back to Aperture which is a shame
    Apple seem to have got too big for good customer service these days unless it's an iPhone or iPad
    I

  • Photoshop Elements 11 cant read the raw files from my Fuji x-e2, what can i do?

    I need help please as I cant work on the raw file from my Fuji x-e2 on Photoshop Elements 11 as it cant read them. any suggestions what I can do?

    Unfortunatly it seems that the camera raw 8.3 plugin is required, which is still in a public beta for photoshop, but even
    when it's released as final, pse 11 will most likely not be able to use it.
    You could however download the
    DNG Converter 8.3 Release Candidate
    and convert your  Fuji X-E2 files to dng copies which should then open in pse 11
    http://labs.adobe.com/downloads/cameraraw8-3.html

  • To read the csv file using collections

    i am able to retrieve each row of the csv file which is in table format But in some columns the data entered is in two or three lines while retriving the row, the program is taking The second line of that column as the second row of that file
    how could i display the entire row of that file in a single line.
    i have done this program could u please help out in this program
    package fileReading;
         import java.io.BufferedReader;
         import java.io.FileReader;
         import java.util.*;
         import java.util.Vector;
    public class FileReading
         public static void main(String args[]){
         try{
         String line;
         int startInd,endInd;
         char FieldSeparator = ',';
    //       List recordset;
         Map recordset;
         Vector record;
         int recordNumber=0;
    //       recordset = new ArrayList();
         recordset = new HashMap();
         BufferedReader in = new BufferedReader(new FileReader("c:\\GEMSBBtest.csv"));
         line = in.readLine();
         line = in.readLine();
         do{
         int len = line.length();
         record = new Vector();
    //       System.out.println(line);
         for(startInd = -1, endInd = 0; endInd >=0; ){
         endInd = line.indexOf(FieldSeparator,startInd+1 );
         if (endInd < 1){
         record.add(line.substring(startInd+1,len));
    //       System.out.println(line.substring(startInd+1,len));
         else{
         record.add(line.substring(startInd+1,endInd));
    //       System.out.println(line.substring(startInd+1,endInd));
         startInd = endInd;
         recordNumber++;
    //       recordset.add(record);
         recordset.put(Integer.toString(recordNumber),record);
         line = in.readLine();
    if (recordNumber<3)
         System.out.println(line);
         }while(line!=null);
         System.out.println(recordset.size());
         //System.out.println(recordNumber);
         }catch(Exception e){
         System.out.println(e.toString());
         }

    No there is no such special characters.Actually the file which there in xls format is being converted to csv format
    Now in each cell there r multiple lines and i need to print each row in a single line including that multiple line column or cell

  • Can I make Aperture 3.4.5 read the RAW files from a Lumix GX7?

    I had an LX7 - RAW support no problem. Just got my lovely GX7 and native Aperture RAW support for this camera doesn't exist. I can't upgrade from OS 10.7.5 or Aperture 3.4.5 as I'm on a 2007 MacPro. Does anyone know of a plug-in or other way to make Aperture 3.4.5 display the RAW files from the GX7? I really don't want to have to use Silkypix again...

    The Tech Specs for the Raw support are contradictory:
    http://www.apple.com/aperture/specs/raw.html
    says Aperture 3.4 or later required for your camera, but the Compatibility Update 5.01 (http://support.apple.com/kb/DL1706) says Mac OS X 10.8.5 or later.
    Have you tried to download and install the update?
    Does anyone know of a plug-in or other way to make Aperture 3.4.5 display the RAW files from the GX7?
    I don't think that is possible, since Aperture will convert images to tiff or psd, when sending them to plug-ins and external editors. And that requires, that Aperture can process the raw.
    I really don't want to have to use Silkypix again...
    I am using Adobe's dng converter for my unsupported Lumix raws. But I cannot check, if it will process your GX7 files.
    -- Léonie

  • Read the pdf file from the Third party server.

    hi all,
    we got the requirement that we have to display the salary statement and form16 in the portal.
    we are not using the sap for the pay roll.
    pay roll will run by the third party....they will keep all salary slips in the one folder under the server.
    so from the third party server we have to get the salary statement in to our application......third party will storing the file with salcode.pdf.
    can you help me to resolve this?
    Thanks in advance
    swapna

    Hi yugedhar,
    thank you for the reply.
    the pdf files will be available in one common folder , with in the server only.
    so i have to implement the code to download the file from the one particular location based on the name of the file
    (means if  file name =Login id that has to open)
    so can you help me implement this logic .
    Thank you
    swapna

  • I want to read the attached file from the second line to the last line befor the first NCOUNT

    after i want put it in a array but just the 1.2.3.6.and the 7 column
    ex: TIMET 0 1 1 0
    after to count how much NCOUNT i have and put the values of every one in long vector or array with one element
    Attachments:
    file2.txt ‏204 KB

    Here's a VI I wrote that should help you out. Since you are wanting to place a string in that array, it will need to be an array of all string. Hope this helps.
    J.R. Allen
    Attachments:
    File_Parser.vi ‏41 KB

Maybe you are looking for

  • FRM-40202:field must be entered

    In R12, under Service Contracts; when navigating between the two blocks 'FRM-40202' error is thrown indicating 'Field must be enetered'. Duplication Instructions: 1) Create a new service contract with 2 usage lines and add 1 counter at subline level

  • No options under the distribute tab to copy url link or embed a fillable PDF form

    I Have a paid basic account is not giving me the option to under the  distribute tab to copy url link or embed a fillable PDF form? Simply put it doesn't show up for an option. I want to embed the form into my website but the embed feature is not sho

  • Unable to update or restore new iPad Mini 2.  Get error 3014 on two different Macs.

    Unable to update or restore new iPad Mini 2.  Get error 3014 on two different Macs.  This is a new out of the box iPad Mini 2. Am on a managed network, but have not had this problem previously.

  • IBook PDF files

    Can't find my PDF files stored in iBooks after restoring my iPad 3

  • Network connection was reset? PLEASE HELP!!!

    ok, i get on itunes two days ago and buy a song every thing is fine, yesterday and today however i try to buy one and it says "could not purchase "promiscuous". the network connection was reset" Make sure your network connection is active and try aga