Remove extra blank rows in ORACLE SPOOLING

I am trying to spool a table result to a .dat file.
The problem is the output spool file has 3 rows after each row with a column having its row data split as 3 for every enter key in the data.
Eg:
Original data as in DB
A B C
1 1 ABC DEF GH
2 1 DEF GHI JK
SPOOL FILE O/P
A | B | C |
1 | 1 | ABC |
     | |DEF |
     | |GH |
2 | 1 | DEF |
     | | GHI |
     | | JK |
Thanks,
Dheepan

Dheepan wrote:
I am trying to spool a table result to a .dat file.
The problem is the output spool file has 3 rows after each row with a column having its row data split as 3 for every enter key in the data.
Eg:
Original data as in DB
A B C
1 1 ABC DEF GH
2 1 DEF GHI JK
SPOOL FILE O/P
A | B | C |
1 | 1 | ABC |
     | |DEF |
     | |GH |
2 | 1 | DEF |
     | | GHI |
     | | JK |
Thanks,
Dheepancan you post script?
BTW, have you included SET TRIMSPOOL ON ?
When you have moved your question, Close that thread ORACLE SPOOLING extra blank rows
Edited by: CKPT on Mar 24, 2012 10:07 PM

Similar Messages

  • Extra blank rows in vba spreadsheet zoom

    Here's how it happens:
    - in Excel 2003 VBA
    - two row dims
    - right row dim is fixed list of mbrs
    - left row dim is single member zoom
    - sheet has other stuff on it, so retrieve range is not entire sheet
    - top of retrieve range is in row 6
    so when I call EssVZoomIn() in this situation, the result is that there are 5 blank rows between each instance of a member in the left row dim. That is the exact number of rows above the retrieve range in this sheet, and it turns out that is the variable: if I move the retrieve range to row 7, I get 6 empty rows everywhere.
    I have tried every spreadsheet option that would appear to have any impact, no joy. I have tried using a free form mode retrieve, which works, but then I can't preserve formulas in the sheet, which I need to do.
    I can work around this, but what a silly thing to have to do, like do the zoom in a separate sheet, or remove all the empty rows after the zoom. Does anyone have any ideas about how to disable this "feature"?
    Thanks!

    Dheepan wrote:
    I am trying to spool a table result to a .dat file.
    The problem is the output spool file has 3 rows after each row with a column having its row data split as 3 for every enter key in the data.
    Eg:
    Original data as in DB
    A B C
    1 1 ABC DEF GH
    2 1 DEF GHI JK
    SPOOL FILE O/P
    A | B | C |
    1 | 1 | ABC |
         | |DEF |
         | |GH |
    2 | 1 | DEF |
         | | GHI |
         | | JK |
    Thanks,
    Dheepancan you post script?
    BTW, have you included SET TRIMSPOOL ON ?
    When you have moved your question, Close that thread ORACLE SPOOLING extra blank rows
    Edited by: CKPT on Mar 24, 2012 10:07 PM

  • Any way to remove extra blank "separator" pages when printing in Numbers?

    Hello, I've just started using Numbers '09 and noticed that for each page I have, there is an extra blank "separator" page that is added. Last night, I started a spreadsheet using one of the templates, and it's only 2 pages long, but it states on the sidebar that it's 4 pages. Those extra blank pages are only seen when you do a Print Preview. Is there a way to remove or disable these extra blank pages?
    I don't want those blank pages to print, especially when there are multiple sheets within the file with those blank pages mixed in-between. Plus, I send the file to others to reference too and would like them to be able to print the pages seamlessly without having to remove any blank separator pages that are printed in-between. Seems like there should be an easy remedy to this, but so far, haven't been able to find the solution. Thanks for your help!

    Hi,
    Unlike other spreadsheet programs, Numbers doesn't have wall-to-wall tables. Tables have a finite size and wherever there is a table a page will print, whether there is content in the cells on that page or not. To prevent the sheets without content from printing, you need just reduce the size of the tables to what you actually are using. If you select a cell in your table and scroll to the lower right corner of the table, you will find a large handle that when dragged will change the number of Rows and Columns. Drag the handle up and to the left until it encounters content. It will stop there on its own.
    Now go to the Print View mode: View > Show Print View. You will see all the pages with content and adjacent non-printing pages will be grayed-out.
    Hope this helps.
    Jerry

  • How to remove extra blank spaces from log file.

    i have created a log file which contain the logs of a program. the logs are getting created fine for the first execution of the program but from the second time the log file is getting blank space's after every character.
    i have used the code to append the text in log files few examples : 
     'Clean up process started....' >> $log
    File name :'+ $files +'Time-Stamp: '+ $endtime +'Search complete.' >> $log 
    .i want to remove the extra spaces after each character but not all the spaces from the file. Thanks in advance.

    hi  mjolinor
    add-content is used to insert text it does not append text at the file .i used >> to append the text on log file ..
    from 
    Get-Help ADd-Content
    Synopsis
    Appends content, such as words or data, to a file.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • SSRS How to remove a blank row

    Hi All;
    Below is my SSR deign
    which gives me the Preview as below
    Can you please help me remove the rows which bring 0 . In this case the row Yesterday 0 0 needs to come out
    Any help much appreciated
    Thanks
    Pradnya07

    I would alter a T-SQL statement that returns the data filtering out the rows with value=0
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Removing extra blank space after Header in IE

    This is my first webpage in Dreamweaver (actually it's my
    first webpage!) I'm still super new and can use A LOT of help.
    First off, I'm using the two column elastic left sidebar
    header/footer template from DW. When I preview my page in IE I get
    an extra gap between the header and the sidebar/maincontent portion
    of the screen. I've tried zeroing all of my margins and padding and
    that seems to have no effect. I read some of the other posts and
    found some code that sounds like it should fix the problem, so is
    this all I have to add to my code?
    Attach Code:
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout
    it needs to avoid several bugs */
    </style>
    <![endif]-->
    Also, I am trying to add an image placeholder to my header,
    but everytime I try, the placeholder becomes part of the <h1>
    tag. I don't want it to be part of the <h1> tag (I don't
    think). I would like to be able to just place it in the header so
    that I can float it left and have it not effect my <h1> tag
    at all. Is there a fix for that? I would assume that there would
    be, but seeing as I'm still at Newb status, I have no idea what
    that code would be.
    Thank you!

    Ewww - made the page in Word, did you?
    span.style81 {mso-style-name:style81;
    mso-ansi-font-size:17.5pt;
    mso-bidi-font-size:17.5pt;
    font-family:Arial;
    mso-ascii-font-family:Arial;
    mso-hansi-font-family:Arial;
    mso-bidi-font-family:Arial;
    color:black;
    font-weight:bold;}
    Try changing this -
    <table width="795" border="0" bordercolor="#000000"
    bgcolor="#000000"
    style="border-color: #333333;">
    to this -
    <table width="795" border="0" bgcolor="#000000"
    style="border-color:
    #333333;" cellspacing="0" cellpadding="0">
    Be aware that without specifying a border-style, and
    border-width, your
    border-color style will have no effect.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "moon64" <[email protected]> wrote in
    message
    news:en1idh$kca$[email protected]..
    >I am getting a small space on some of my pages in-between
    the header and
    >the
    > first table. The problem only shows itself in IE, not
    through Firefox. I
    > have
    > encountered the same problem on some other things I have
    been working on.
    > Here
    > is a portion of the file if anyone could kindly see what
    is casuing the
    > problem. Thanks in advance. This board must have
    answered 100 questions
    > for me
    > so far.
    >
    >
    http://www.1candlemarketing.com/fund/headertest.html
    >

  • Remove extra space value of the field  in text element

    Dear All,
    Can any one please help me out to remove the blank spaces in the text elements of SF.
    we are printing Label in which i want print  quantity of material. and i am using MSEG-MENGE for quantity of maetrial.
    But the issues is when we are printing the label. We are getting spaces  in the Text elements fields &MSEG-MENGE&.
    i am also check menge field within mseg table. in which menge field define as QUAN data type with length 13.
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&          
    UOM:&t_MSEG-MEINS&
    >
    My Output in SF:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:             960
    UOM:LBM
    MIGO.NO.:4900000025
    how to remove extra blank spaces in the text elements ( QTY:             960 )
    guide me.........

    Dear All,
    I am using  code block in SF before text element.
    In  The Text Element ...
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&
    UOM:&t_MSEG-MEINS&
    MIGO.NO.:&t_MSEG-MBLNR&
    PO.NO.:&t_MSEG-EBELN&
    LOCATION:&t_MSEG-WERK&&NAME1&
    >
    In programe Line ( code block )....
    <
    read table t_mseg index w_index.
    qty = t_mseg-menge.
    condense qty.
    SELECT SINGLE name1 FROM t001w INTO name1 WHERE werks = t_mseg-werks.
    SELECT SINGLE maktx FROM makt INTO maktx WHERE matnr = t_mseg-matnr.
    >
    My Output:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:                                                      960
    UOM:LBM
    MIGO.NO.:4900000025
    Only problem in value of Quantity field .
    guide me.........

  • Getting extra NULL row in presentation layer when we use CASE in RPD

    Hi,
    We have created some time utility members in RPD like Previous month, Previous quarter.
    Steps:
    We have created a init block for capturing Previous month, Previous quarter and added variables with some default values assigned.
    Now, we have created a logical column under time dimension in BMM as Previous month, Previous quarter. We are deriving them using following way.CASE
    WHEN
    MONTH_COL_NAME=VALUEOF(REPOSITORY_VAR_NAME)
    THEN
    MONTH_COL_NAME
    END
    We want these dimension values to qualify with measures.
    The problem we are facing is it is showing one extra blank row in presentation layer when we bring Previous month or Previous quarter. This is because CASE conditions behaviour. How to avoid null in CASE condition in RPD?
    Thanks,
    Anilesh

    You need to handle the records which are not equals to REPOSITORY_VAR_NAME.
    I guess those other rest of values .
    Try this
    CASE
    WHEN
    MONTH_COL_NAME=VALUEOF(REPOSITORY_VAR_NAME)
    THEN
    'Y'
    ELSE 'N'
    END
    in criteria use Y as filter value
    If helps pls mark
    Edited by: Srini VEERAVALLI on Dec 20, 2012 7:49 AM

  • Hide blank rows

    I am trying to skip displaying a row if the value of a field is blank. Here is the details:
    I have an XML file that has 5 Fields, a, b, c, d, e. Data in field D can be quite long, so I want to display field D on a separate row, but not every record has a value for field D. So, the output should look like the following:
    a, b, c, e
    d
    a, b, c, e
    a, b, c, e
    a, b, c, e
    Currently, I have 2 rows in a table, but what is happening is that if D is blank, I am getting a blank row:
    a, b, c, e
    d
    a, b, c, e
    a, b, c, e
    a, b, c, e
    I want to remove the blank row if D is blank.
    Thanks in advance for your assistance.

    Here is the XML, where ISSUE_NOTE is field D in previous threads:
    <LIST_G_STATUS>
    <G_STATUS>
    <ISSUE_STATUS>IS_Closed</ISSUE_STATUS>
    <LIST_G_ISSUE>
    <G_ISSUE>
    <ISSUE_ID/>
    <ISSUE_NAME>New regulations</ISSUE_NAME>
    <ISSUE_NOTE/>
    <PROJECT_ID>xyz</PROJECT_ID>
    <ISSUE_STATUS>IS_Closed</ISSUE_STATUS>
    <ISSUE_PRIORITY>PT_Normal</ISSUE_PRIORITY>
    <ISSUE_CRITICALITY/>
    </G_ISSUE>
    <G_ISSUE>
    <ISSUE_ID/>
    <ISSUE_NAME>Product Mgr changed Platform Support Doc</ISSUE_NAME>
    <ISSUE_NOTE/>
    <PROJECT_ID>PROD00414</PROJECT_ID>
    <ISSUE_STATUS>IS_Closed</ISSUE_STATUS>
    <ISSUE_PRIORITY>PT_Low</ISSUE_PRIORITY>
    <ISSUE_CRITICALITY/>
    </G_ISSUE>
    <G_ISSUE>
    <ISSUE_ID/>
    <ISSUE_NAME>Forecast Overrun</ISSUE_NAME>
    <ISSUE_NOTE>Jeff:
    I noticed that the forecast for Autumn Breezes shows a $512,000 cost overrun. I dug into it a little bit and found the problem area is in Building 1 Interior Finishes. I remember you telling me that we were having some problems with that subcontractor&apos;s productivity. Is this still the case? We are only 6 months into this project and I don&apos;t want this problem to grow. Can you fill me in on what is happening and you and I can work together to resolve it.
    Thanks for your help and hard work!
    Bruce
    V.P. of Construction</ISSUE_NOTE>
    <PROJECT_ID>abc</PROJECT_ID>
    <ISSUE_STATUS>IS_Open</ISSUE_STATUS>
    <ISSUE_PRIORITY>PT_High</ISSUE_PRIORITY>
    <ISSUE_CRITICALITY/>
    </G_ISSUE>
    <G_ISSUE>
    <ISSUE_ID/>
    <ISSUE_NAME>Finish Date Variance (days) is -26d on WBS: Harbour Pointe.8</ISSUE_NAME>
    <ISSUE_NOTE/>
    <PROJECT_ID>abc</PROJECT_ID>
    <ISSUE_STATUS>IS_Open</ISSUE_STATUS>
    <ISSUE_PRIORITY>PT_Normal</ISSUE_PRIORITY>
    <ISSUE_CRITICALITY/>
    </G_ISSUE>
    </LIST_G_ISSUE>
    </G_STATUS>
    </LIST_G_STATUS>

  • How to insert Blank rows while Zero Suppression is Activated?

    I am using BI 2004s and have applied zero suppression to a query I have built, how ever this removes the blank rows I am using to format the report. Any ideas on how I could get the blank rows to remain whilst removing zero value rows?
    Thanks
    Stu

    in zero suppression, select active(All values = 0)
    *reward if helpful*

  • Spool to cvs file creates blank rows

    Hello, I am trying to create a spool file to a csv file. i am able to create the csv file successfully, but every 14 rows there is a blank row. This will cause a problem since we will have another application reading this file and most likely error out when it reaches the blank row.
    I have a batch fiile that is calling a sql file that runs the script that produces the spool. We are using oracle 10g, release 10.2.0.4.0
    I have tried different options with the spool but nothing seems to help. here is an example of my result
    1-1011S6
    1-101HGX
    1-1027Y
    1-108FAP
    1-108FDP
    1-10BJB
    1-10CIIU
    1-10K6QD
    1-10NNY5
    1-10P5G9
    1-10PTI5
    1-10RAY
    1-112DI
    1-115PEP
    1-118PAO
    1-12KWI
    1-142UB
    1-14CJ3
    1-14CM7
    1-14D2R
    1-14LJU
    1-14LRN
    1-14RWV
    1-14WEW
    1-15239
    1-15276
    1-152YQ
    1-1539N
    1-153NO
    1-1541D
    any ideas would be great.
    Thanks in advance

    This is becuase of the pagesize in SQLPLUS which by default is 14.
    Make sure it is larger than the maximum numbe of elements you are expecting (or) Zero.
    http://download-uk.oracle.com/docs/cd/B19306_01/olap.102/b14346/dml_x_obj012.htm
    sql> select rownum, object_id from user_objects
      2  where rownum < 20;
        ROWNUM  OBJECT_ID
             1      52136
             2      52098
             3      52124
             4      52099
             5      52100
             6      52118
             7      52120
             8      52139
             9      52123
            10      52101
            11      52102
        ROWNUM  OBJECT_ID
            12      52103
            13      52127
            14      52104
            15      52075
            16      52076
            17      52143
            18      52115
            19      52137
    19 rows selected.
    sql> set pagesize 50;
    sql> /
        ROWNUM  OBJECT_ID
             1      52136
             2      52098
             3      52124
             4      52099
             5      52100
             6      52118
             7      52120
             8      52139
             9      52123
            10      52101
            11      52102
            12      52103
            13      52127
            14      52104
            15      52075
            16      52076
            17      52143
            18      52115
            19      52137
    19 rows selected.
    sql> set pagesize 0;
    sql> /
             1      52136
             2      52098
             3      52124
             4      52099
             5      52100
             6      52118
             7      52120
             8      52139
             9      52123
            10      52101
            11      52102
            12      52103
            13      52127
            14      52104
            15      52075
            16      52076
            17      52143
            18      52115
            19      52137
    19 rows selected.

  • Removing blank rows in Presentation

    Hi,
    How can i remove blank rows in a Bi Bean Presentaion?
    do i have to configure it in
    a)while making the presentation, or
    b)when displaying it in a JSP page?
    thanks,
    Vaibhav.

    the method is setSuppressRows in class
    oracle.dss.dataSource.client.QueryClient
    you must retreive the Query of your Presentation (Crosstab ThinCrosstab...) and then apply this method to the query...
    After you use it,please reply here if it works,because it does not work to me...
    Antonio

  • Removing blank rows in File Content Conversion

    The following is the snippet of XML in a file produced by the File Receiver Adapter using FCC. The mapping is fairly complex and results in blanks rows being outputed. I need to remove this but I don't want to change my mapping. I've tried using .fieldContentFormatting "trim" to no avail.
    Once again, can anyone help me?
    <Prices  COLUMNS="IndexName, Date, IndexPrice">
    Price_OU_gas,2007-05-01,23
    Price_OU_gas,2007-05-01,65
    Price_OU_gas,2007-05-01,66
    Price_OU_gas,2007-05-01,12
    Price_OU_gas,2007-05-01,56
    </ GasPrices>

    Crowe,
    In the mapping only specify for the root node a Boolean funciton like:
    If --> Source not equals to space then (put your mapping logic)  ---> createif --> Target.
    ---Satish

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • Remove blank rows in Report painter

    Good morning,
    When running a report in GR55, I show ten blank rows on top of the report and I would like to get rid of them to save space. I have not found yet a way to do this in GRR2.

    Hi,
    Are you working with SAP B1?
    Thanks.

Maybe you are looking for

  • How can I change the default header font in adobe acrobat?

    Hi, We run adobe acrobat 7 (ver 7.1.4)  throughout the office. We have a large number of pdf's to create from word documents and each one needs a header and footer. For official reasons these must be in Times New Roman font and 10 point font size. Ad

  • Autopunch issue: maybe I can be more clear?

    Hi Guys, Sorry if my original autopunch question was confusing. I got a lot of views but no replies. I can't be sure why. Let me try again. The autopunch shortcut (choosing an area with the Marquee tool then hitting record), will automatically enable

  • MBP Retina Black Desktop keeps resetting

    I am having a problem with my new Macbook Pro Retina. Every time I turn on the computer, the desktop wallpaper resets itself to a black backround. Once I open the wallpaper chooser and choose the galaxy or any other default wallpapers, it sets the ba

  • Change screen resolution on netbook

    I've just installed arch linux with xfce. When I try to change the resolution, the only options are 800*600 and 640*480. It also does not recognize my external monitor. How can I fix this? Thanks

  • Nokia Lumia 925 updating

    I just purchased my Nokia Lumia 925 today, and it doesn't come with GDR3. So i tried to update the phone and it constantly gives me the 801881do error stating it cannot update. What does this error mean and what could i do to fix it?? Thanks to any h