How to skip the header rows of the file using UTL_FILE?

Hi,
I created a procedure to read the file from shared location using UTl_FILE package. But, I stucked why because I don't know how to skip the header rows as those rows are headings for one of the report.Since, please help me.
Regards,
Vissu.....

vissu wrote:
Hi,
I created a procedure to read the file from shared location using UTl_FILE package. But, I stucked why because I don't know how to skip the header rows as those rows are headings for one of the report.Since, please help me.
Regards,
Vissu.....UTL_FILE just reads data from the file. It has no concept of what could be a "header" or "body" or "records" or "footer" or any other data based concept. If you want to skip lines of a file, you will just need to read them using UTL_FILE and ignore them.

Similar Messages

  • Looking for thoughts on the best way to repeat the header row at the top of the exported file.

    I have a request to create an extract and they need the header row to be written twice at the top of the file.
    I thought maybe a for each loop with a script that reset the increment variable one time before looping through the rest of the dataset, I am curious to hear what other options there are.
    Thanks,
    P

    If it is the same record twice then make it a variable and append twice before the details as per this blog post:
    http://agilebi.com/jwelch/2008/02/08/adding-headers-and-footers-to-flat-files/
    Arthur My Blog

  • Header and filed vlues n the same row in reciver file using FCC

    Hi,
    I have a scenario ,where  receiver file should contain   only one row (the row contain all the filed values using end separator) .
    and also need to display header (file should contain only one row including header and field values).
    Now  i am getting 2 rows  , one row contain all header ( i did using name.headerfields-3)  and the second row contain all the filed values.
    please let me know is there a way i can combine both header and field  values in one row using receiver FCC.
    Regards
    Surya
    Edited by: SuryaPrakash Reddy on Oct 28, 2011 9:03 AM

    SuryaPrakash Reddy wrote:
    I thought about this (put your header in first field of your target structure.),but i want do this as last option.
    this is the best option you have here since from a standard configuration you will not be able to achieve this.

  • How to skip first TWO Lines of   .txt  file    using XSLT Mapping

    Hi Friends  ,
                              I have an .txt file in has the format as
                               <TEST>
                                4564564545
                                56456444566
                                56465
                                    How can i skip the first two Lines when i am writing the XSLT Mapping ?
                              That <TEST> and empty line shouldn't go the rfc  .
                             How can i skip and sent to rfc  using XSLT Mapping ?
    Best Regards .,
    V.Rangarajan

    you can avoid the empty lines in your File Content Conversion by defining offset.
    <i>Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.</i>
    ref: http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    then the generated XML after FCC will not have the empty lines.

  • How to make wild card search for a file using utl_file

    Hi Everyone,
    I want to write to a table from flat file.im using 9i release 2. can i perform filename* (wildcard) search n write to the matching files.
    Regards
    Manish

    Sorry can i write from those files which matches the search criteria i mean the wildcard search
    for e.g COVhj*

  • How can I freeze the header row in Numbers '08

    Hello,
    I've read through support communities and looked high and low through numbers, but can't seem to find a way to freeze my header row.  Any ideas?  Thanks!

    Hi April,
    Upgrade to Numbers '09, where the feature was added.
    The closest you can come in Numbers '08 is "Repeat Headers" in the Table menu, which will show the header row at the top of each page of the document as it would be printed.
    Regards,
    Barry

  • Sql loader does not skip header rows from the second infile

    Hi
    I am new to Sql Loader and trying to figure out a way to load data into the table from 2 files which have different data in the same format. The files get successfully loaded into the database with just one glitch:
    Its skips first 2 rows from the first file however it takes first 2 rows from the 2nd file which I do not want. Can anyone help me with this issue? How can i restrict loader from picking up the 2 header rows from the second file as well?
    given below is the content of the control file
    OPTIONS ( SKIP=2)
    LOAD DATA
    INFILE 'C:\loader\contacts\Italy_Wave11_Contacts.csv'
    BADFILE 'C:\loader\contacts\Contacts.bad'
    DISCARDFILE 'C:\loader\contacts\contacts.dsc'
    infile 'C:\loader\contacts\Spain_Wave11_Contacts.csv'
    BADFILE 'C:\loader\contacts\Contacts1.bad'
    DISCARDFILE 'C:\loader\contacts\contacts1.dsc'
    Truncate
    into table V_contacts_dump
    fields terminated by ',' optionally enclosed by '"'
    trailing nullcols
    (ASSISTANT_EMAIL_TX,
    ASSISTANT_NM,
    ASSISTANT_PHONE_TX,
    BUSINESS_AREA_CD,
    BUSINESS_EMAIL_TX,
    BUSINESS_FAX_TX,
    BUYER_ROLE_CD,
    COMMENTS_TX,
    COUNTRY_CD,
    COUNTY_STATE_PROVINCE_CD,
    DATE_OF_BIRTH_DT,
    DO_NOT_CALL_IN,
    DO_NOT_EMAIL_IN,
    DO_NOT_MAIL_IN,
    DOMESTIC_PARTNERS_NM,
    FIRST_NM,
    FULL_NM,
    GENDER_CD,
    INTERESTS_CD,
    LAST_NM,
    MIDDLE_NM,
    MOBILE_TX,
    OFFICE_PHONE_TX,
    OWNER_PARTY_EMAIL,
    PREFERRED_CONTACT_LANG_CD,
    PREFERRED_CONTACT_CD,
    PRIMARY_CONTACT_IN,
    REFERRED_BY_TX,
    SALUTATION_CD,
    STAC_SRC_ID_TX,
    STAC_STDS_SRC_ID,
    STCN_SRC_ID_TX,
    STREET_TX,
    STREET2_TX,
    STREET3_TX,
    SUFFIX_TX,
    TITLE_CD,
    TOWN_CITY_TX,
    ZIP_POSTAL_CD_TX )

    It would be possible to call the loader twice with only one input-File at each run.

  • How to skip the first row in Text file (in Sql Loader)

    Hi All,
    How to say the control file to skip the first row of the text file..
    i just going this example
    this is my text file:
    01308201222455038130820122245503813082012224550382
    1090358 474661834012245503813082012 0075 0 00000000000 000000000 00000130820120000000000000000 136.84 -833.3911082012 000000 000 009035847466183 090358 47466183 0015007514300000970001430000097700BH1150274792012081320120811201208122012-08-11-22.45.50.38369899999.0075LIQJGL17
    Control file:
    OPTIONS
    DIRECT = TRUE ,
    PARALLEL = FALSE ,
    SKIP = 1,
    ERRORS = 0
    UNRECOVERABLE
    LOAD DATA
    INFILE      <"FILE_DIR">
    BADFILE <"FILE_DIR">
    INSERT
    INTO TABLE DAILY_TRANSACTION
    WHEN (1:1)='D'
    TRAILING NULLCOLS
    Above the Eaxmple text file i need to Skip the first row which is
    01308201222455038130820122245503813082012224550382
    please can anyone suggest me is this correct?
    if not please correct me please
    since two days i been serching but i didn't get any thing
    Thank's
    Edited by: Lavanya on 24-Sep-2012 00:51

    Lavanya wrote:
    Hi Jeneesh,
    Thank you for your prompt replay
    I didn't try to load this control file
    And i need one more question
    I have Text file in my Machine which Contains very huge data so i was wrote one control file for that, and i got FTP connection also as well as.
    My question is firstly I need to PUT the Text file Into Unix Server isn't?
    so when i trying to put the text file into unix it's giving an error
    ftp>put c:/abc.txt
    Not connectedYou haven't succesfully made your FTP connection to the server.
    e.g.
    c:\>ftp
    ftp> o testserver
    Connected to testserver.mycompany.com.
    220 testserver FTP server ready.
    User (testserver.mycompany.com:(none)): myuser
    331 Password required for myuser.
    Password:
    230 User myuser logged in.
    ftp>then you can use FTP to put your data to the server. Remember, if you are transferring a text file from a windows based operating system to a unix server you need to put it in ASCII mode...
    ftp> ascii
    200 Type set to A.
    ftp>which will automatically convert the windows CR/LF pairs to the single LF character used by unix.

  • How to freeze the report header row in the web template SAP BI 7.0?

    Hello,
    Can somebody tell me how to freeze the report header row in the web template SAP BI 7.0 (key fiigures1, 2,3)?
    key figure1   key figure2    key figure3
    20                    30                   40
    30                    80                   90
    Thanks

    Hi,
    You can refer the following threads...
    Re: Create Scrollable Table Body in WAD - Locking Table Column and Header
    Freeze Data Columns in WAD
    This will help you!
    Rgds,
    Murali

  • How to ignore the first row  in sender file

    I would like to ignore the first row in each file in the sender channel - how can i do it?

    Hi
    Check this,
    As he said give Document Offset = 1
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Also check this forum
    Re: Supress Column Heading - File Content Conversion in Sender Adapter
    Thanks,
    Prakash

  • How to add A single row at the middle of the table in a Webi report

    Hi,
         I created a Webi report using Universe(Created universe using bex query).Now i have a requirement to display a row at the middle of a report. Can you please tell me ,how to add a sigle row at the middle of a Webi report.
                                                    Thanks in advance
    Regards
    Monika

    Hi Monika,
    It is not really possible to add a row (I assume you mean of unrelated data) to the middle of a table in a report. You can add a new table with a single row between two tables. For instance you could add a new one row table, or even single cells which are positioned relatively between two tables. Possibly a block on top of another. But this gets tricky.
    Can you explain in more detail what you are trying to do?
    Thanks

  • How can I filter the LOV rows at the runtime

    I am working in oracle forms 6i.
    My lov is based on a view. If I selected one row from LOV, that row should not appear in list box.
    I would like to restrict rows before saving a form. How can i filer the LOV rows at the runtime?
    Please help me.

    Dear Mr.MH_BD,
    Thanks for your immediate response,
    My form is built based on master and detail link.  On the multi row detail section I am invoking this LOV.  The record group containing the following query:
    select fees_id,fees_name,term_fees from sk_fees_mst where fees_bal>0;
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    13
    Smart Class
    100
    14
    Admin Fees
    300
    If I selected the fees_id 13 for the first row of detail section, then the LOV should display only the following in the next row:
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    14
    Admin Fees
    300
    (ie.) Before commit form I need to filter the already selected fees ids from record group.
    Thanks in advance.

  • How do I select a row from the middle of a recordset?

    UserID QuestionID Answered
    10 9 N
    10 8 N
    10 7 N
    10 6 N
    10 5 Y
    10 4 Y
    10 1 Y
    From the table sorted by QuestionID DESC, how do I select the first row from the bottom going up with Answered value equal to 'N'?
    Which in the example above would be:
    10 6 N
    I need to select this row and get the QuestionID value equal to 6.
    Right now I have:
    select QuestionID
    from tblMap
    where Answered = 'N'
    and ROWNUM = 1
    order by QuestionID ASC;
    This always the top most row, which would be:
    10 9 N

    Here i used DUAL to generate a list of numbers for me.
    ME_XE?select *
      2  from
      3  (
      4     select row_number() over (order by col1 desc) as rn, count(*) over() as cnt, col1
      5     from
      6     (
      7        select level as col1 from dual connect by level <= 9
      8     )
      9  )
    10  where ceil(cnt/2) = rn
    11  /
                    RN                CNT               COL1
                     5                  9                  5
    1 row selected.
    Elapsed: 00:00:00.07
    ME_XE?Edited by: Tubby on Jul 8, 2009 1:47 PM
    Seems i misread the question :)

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • How to insert a new row in the middle of an set of rows

    Hi
    How to insert a new  row in the middle of an set of rows ? and How to Reset the line id after the new row added ?
    Regards,
    Sudhir B.

    Hai,
    just try this,
    Instead of using omatrix.Addrow(1,-1) use like
    omatrix.AddRow( RowCount , Position)
    RowCount
    The number of rows to add (default is 1)
    Position
    The position of the new rows (0-based; default is -1, meaning append row to the end)
    After adding rows in matrix For, sno.
    for i=1 to omatrix.visualrowcount
    otext=omatrix.getcellspecific("columnid",i)  '--where columnid is the unique id of the sno column
    otext.value=i
    next i
    Hope this helps you.
    Thanks & Regards,
    Parvatha Solai.N

Maybe you are looking for

  • Publishing to a different folder

    Your help would be appreciated, of the moment I am hosting a site on my lion iWeb software. If I made a new website could I host it using the same software uploading it to a local folder 1st and then publishing it to a separate domain hosted by someb

  • Clearing charges

    Hi friends, While doing MIRO the clearing charges are being crediting to main vendor account. Have maintained the clearing agent vendor code in PO condition tab for all the items. Still it is crediting main vendor. Can anybody tellme what might be th

  • Has anyone seen their iPads using your wifi non-stop, even if you are not using it, even when it's closed with the smart cover?

    Lately my internet usage is up to the roof. I though somebody was hacking my wireless router so I made it super safe with lots of restrictions. But that didn't stop the download of stuff over my wireless network. When I monitor who or what is using m

  • Leading zero on 24 hour clock

    Is it possible to have the 24-hour clock display a leading zero? Such as 09:00 instead of 9:00.

  • Cs4 Transparancies wont export

    I am exporting .pngs for use in AE CS4 with a "multiply" transparency.  the first couple worked properly but now I can not get Illustrator to export a multiply to save my life.  I changed nothing between the exports!  I have found no solution.  I hav