How to wrap a cell in a xls file created from SQLplus

Hi,
I have the following sql script in Unix which creates a xls file for me -
set pagesize 9999 lines 130                                                    
set echo off                                                                   
set termout off                                                                
set markup HTML on                                                             
set enpmap off                                                                 
spool $test/userxyz/testfile.xls;                                   
-- BEGIN:  Data exctraction from REFINTEG                             
ttitle ' REPORT FOR DATABASE x1111y0'                                          
select ' ' || error_message as ERROR, ' ' || error_type as TYPE, '&nbs
p;' || data_selection as DATA_SELECTION, ' ' || description as DESCRIPTION,
' ' || npp as NPP, ' ' || item as item                    
from   refinteg;                                                       
spool off;          
set markup HTML off;
EXIT;               
/                    The xls file I am getting needs to have the DESCRIPTION column as wrapped. i.e the contents will sizing the cell.
Could you provide any leads as to how to include this formatting in my sql script.
Thanks.

I am trying to give a snapshot of how my csv is looking like currently and how I want it to be -
Error      Type      Data_Selection    Description                      NPP      Item
AAA         new       nsdancsjjsjqs      abc=123 xy=12 pq=34      john       12345678
BBB         old         dsiuhfdcndhjd      mno=345 cd=56 ij=89      kate       23456667
How I want it to look like (pls. note the Description column) -
Error      Type      Data_Selection    Description                      NPP      Item
AAA          new       nsdancsjjsjqs      abc=123                          john      12345678
                                                    xy=12
                                                    pq=34
BBB         old        dsiuhfdcndhjd      mno=345                         kate       23456667
                                                 cd=56
                                                 ij=89
i.e each of the new values in the description column of my spreadsheet would occupy a newline inside the same cell.I do not know how this can be achieved in the SQLplus. Do we need to add any formatting parameters in the sql file.
Thanks.

Similar Messages

  • How to repair corrupt MS Excel 2003 (XLS) File?

    I have important MS Excel file data and unfortunately got corrupt due to virus attacks, so my crucial Excel sheet got lost, how to repair corrupt MS Excel 2003 (XLS) File? If have any solution please assist me.

    A corrupt excel spreadsheet can be repaired by using Open and Repair technique. It is a built-in repair function that opens a corrupt excel file forcefully. 
    *Open MS Excel > press Ctrl+O > locate corrupt excel spreadsheet and select it. 
    *Click on the arrow shown beside Open button > select Open and Repair. 
    It will take just a few seconds to be completed and selected file will be opened, if possible. 
    Or if this doesn't work, one may take help of a third-party Excel Recovery software. I would recommend
    Excel Repair Kit software to recover data from corrupt excel spreadsheet. The software is available with free demo version. To read more about this software and to download its free demo version, visit: http://www.excel.repair/

  • APEX 4.0: error while opening a XLS file downloaded from interactive report

    Hi,
    I'm getting below error while opening a XLS file downloaded from an interactive report (APEX 4.0).
    "The file you trying to open, 'customer_2.xls', is in a different format than specified by the file extension.
    Verify that the is not corrupted and is from a trusted source before opening file. Do you want to open file."
    Yes No Help
    May be this one Apex 4.0 issue.
    please help me.
    Thanks
    Mukesh

    Hi,
    is the next part of the code correct.
    What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
    You can also try below link..
    Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
    Hope this helps.
    Regards,
    -Sandeep

  • HT3345 How do I open a password protected excel file created on a PC?  I get a message that the "file is encrypted and can't be opened"

    How do I open a password protected excel file created on a PC in numbers 09, on a MacBook Air?  I get a message that the "file is encrypted and can't be opened"

    This is actually not true; I support users who are doing this w/ Excel 2011 (v14.2.2+) for Mac and Windows users w/ Excel 2003 & 2007.  Win users are from finance dept, and who have pasword-protected various budget files.  The Mac users are (surprise) "creative" users, who enter pw to unlock and edit these budget files.
    These files are shared from a Mac server (running 10.6.8 server), and I do have an erratic problem where all users have read-only access to these pw-protected Excel files.  The manual work-around has been to copy the troublesome file(s) and confirm users have full access again.  I also do a shuffling of filenames, so that the new, working file has original file name.
    FYI: the Mac server POSIX and ACL permissions are correct, and don't appear to be source of the problem.
    It's easy an SMB file-locking issue or concurrent users trying to edit these files.  I keep reminding them that Excel is not a database!

  • Can't open xls file created by windows excel

    when i try to open a xls file created by windows excel, my numbers (3.2.2) tells me that " 'file name' cannot be opened' please help, thank you!

    ack, this whole thing is frustrating. I can create new .numbers documents, save them as Excel documents, and those resulting .xls documents will open fine. HOWEVER, if I grab an old .xls document from a time machine backup (over a month ago), I cannot open it. Nor can I open an newly saved .xls document saved from the same original .numbers file.
    It would seem that the only thing I can do now is take those old .numbers files and copy/paste the content into a brand new .numbers file. After saving as, the resulting .xls files open fine (with the usual "import warnings", but I'm used to those )

  • Excel 2013 doesn't display .xls file downloaded from Wells Fargo (Inconsistent)

    I have two computers exhibiting the same problem but not every time.
    Windows 7 Pro 64-bit
    Office 2013 64-bit
    Download an .xls file through Chrome or IE.
    Download is fine
    Attempt to click to open.
    Excel Launches, appears in the taskbar, file never opens... Excel is unresponsive.
    Right Click Task Bar icon, program will close.  You can open other files just fine.
    I noticed when you double click the file to open, two excel.exe processes open in Task Manager... not sure if that is normal.  When you close excel, they both disappear.
    Thoughts?

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Did this issue only occur with the .xls files downloaded from Wells Fargo website? Have you tried from other website, such as OneDrive?
    Have you tried to download some .xlsx files to test from Wells Fargo website?
    Please do some tests to narrow down the issue.
    1) Try to convert the .xls files to .xlsx files, if we can open the .xlsx correctly, this issue may be caused by the compatibility issue between Office 2013 and Office 97-2003 format. Thus, I recommend you convert the file to Excel 2013
    format.
    2) Open the Excel program first=>Click Open=>Navigate to the file=>Then open it. If it also can be opened correctly, this issue may be caused by the Dynamic Data Exchange. Please try to turn off the "Ignore other applications that use
    Dynamic Data Exchange (DDE)“ setting.
    Steps:
    1.Click the File tab, and then click Options.
    2.Click Advanced, scroll down to the General section, and then clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the General area.
    3.Click OK.
    If you have any update, please feel free let me know.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to get folder(directory path only not file path) from local file system

    Hi Firends,
    How to get folder(directory path only not file path) from local file system , whenevr i will click on browse button.
    Please give reply for this one , if anybody knows.
    Thanks,
    Anderson.

    Hi Anderson,
    if you're using flash.filesystem.FileReference - then it is run in black box - except of filename, size and creation data (and few other properties available after some operation succeeded). This is part of security features in Flash runtime (described in header section):
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html
    This for example implies that user can download a content to local machine - but that content cannot be loaded back into Flash runtime. For this you would need either Air runtime flash.filesystem.File:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml
    (so you would created Air runtime based application: desktop or mobile but not web, even as standalone project) or you would need one of 3rd party tools that add file access/file information features to standard Flash runtime applications converted to standalone native applications.
    hth,
    kind regards,
    Peter

  • TS1702 How can I transfer a game and game files (Minecraft) from my iphone to my grandson's new ipod touch.  Is there a way to do it without having to restore his ipod from my iphone?

    How can I transfer a game and game files (Minecraft) from my iphone to my grandson's new ipod touch.  Do I have to restore the ipod from my iphone or can I just transfer this one game (plus files).

    Back your device via icloud and restore on other ipod via icloud.

  • How do I get a print to pdf file option from Word and PP?

    I have windows vista. How do I get a print to pdf file option from Word and PP?

    Do you own Acrobat? If so what version? If not what version of Word and PP do you have? Newer versions contain non-Adobe software for creating pdfs. If you do not own Acrobat that it would be best to check in a Microsoft forum on how to use Word to create pdfs.

  • How do i open and inout an XLS file?

    How can I open and input info into an XLS file format?

    That is presumably a Microsoft Excel file, for which you need Microsoft Office. If you don't have that (and don't want to buy it) try Googling for OpenOffice, a free substitute.

  • How to dump a query on a XLS file?

    I´m working in a stored procedure on that i can send a dinamic query and it return me the result into a xls file.
    I´ve found the way to generate that xls file from Pl/sql, but now I need be able to assing each field of each row into his corresponding cell. For this I need to put each field of each row in a variable and then work on it.
    For generate xls file, I´ve created a datatype by following the indications of Jasson Bennet´s blog.
    http://radio-weblogs.com/0137094/2006/10/26.html
    In the example, values are assigned directly to the cells. But it not is valid for me because I dont know what will be these...
    I think that if you want see the blog, you´ll can understand better what I´m refering...
    Thanks for your time...

    Strange requirement, you don't know the query, the columns and the number of rows you get, but you know that you want the value of the second column of the second row :)
    But try this
    declare
      t_c integer;
      t_r integer;
      t_v varchar2(100);
    begin
      t_c := dbms_sql.open_cursor;
      dbms_sql.parse( t_c, q''select 'Roy' name, 'sales' deptno, 25 age from dual
    union all select 'Sara', 'HHRR', 30 from dual
    union all select 'Mike', 'finances', 35 from dual'', dbms_sql.native );
      dbms_sql.define_column( t_c, 2, t_v, 100 );
      t_r := dbms_sql.execute( t_c );
      t_r := dbms_sql.fetch_rows( t_c );
      t_r := dbms_sql.fetch_rows( t_c );
      dbms_sql.column_value( t_c, 2, t_v );
      dbms_sql.close_cursor( t_c );
      dbms_output.put_line( t_v );
    end;
    /

  • How can I change data on my XLS files? I have tried to open them in Adobe reader but they can't be read!!!

    Hi. I have problems changing the data on my XLS files.I tried Adobe reader but it can't open the files.What should I do??

    XLS are Microsoft Excel spreadsheet files.  You can use Microsoft Excel to open them... or any number of compatible applications (OpenOffice, Numbers, etc).

  • XLS Files created by SSRS will not open in Numbers on the iPad

    The company I work for creates business intelligence reports which are used in an education environment and are created daily and e-mailed out to staff.  These reports contain fairly simple tables with pupil data.
    One customer uses iPads extensively to maximise the quick response to this (behaviour) data.  There is an issue which seems to be prevalent in newer versions of Numbers where these documents can not be opened.  I note a previous discussion on this matter where the only solution was to save the file in excel and then the sheets would open.  This is not really an option here.
    I presume that there is some data missing in the header of the XLS file or something but if anyone has any information on this, especially if I can adapt the report in any way to include this data, please let me know if you have overcome a similar issue and how you went about it.
    Thanks,
    Pete H

    Hi - thank you for your responses.  I don't have an iPad so testing is all being done on site.
    The report is based on three tabs, each producing a basic table with data in.  I can create the reports in CSV and they work fine although the format is all wrong (no tabs etc etc) - but that would lead me to believe that it is nothing in the actual data which is causing the load error.  It also seems fairly intermittent, so I tested with a few different file sizes to make sure it wasn't this - and again nothing too conclusive there.
    I presume quicklook is the built in function to view a file, I spotted this today but again it won't open in that or then again when asked to open in Numbers.
    Hunting around this forum it seems there is some issue in general with opening some XLS files (especially ones created by SSRS) depending on iOS version, so that is the route I will be looking at tomorrow.  Putting these files through a save loop in excel isn't really an option, so I am going to test with a go between e-mail tomorrow which has in some cases seemed to do the trick - maybe appending something to the original file.  Some other posts have suggested that an XLSX file seems to work a lot better and that is supported in MS SQL 2012 which is on the way for our customers at some point.
    Definitely an awkward one!
    Thanks,
    Pete

  • Urgent: Issue with the size of an xls file generated from a rtf template

    Hi all,
    I have a template.rtf
    In BI, when I get the file in excel format and save it, the size of the report is 32 MB. When I just "save as" the same report, without changing anything, the size of the report is 8 MB.
    Do you know how to get directly the report with the size 8 MB or would you have some guidelines to avoid this issue.
    Thank you in advance,
    Sonia.

    Thank you Kurz for your answer. I'm going to try to be more precise.
    Actually I'm not in EBS. I generate the output (xls format) direclty from BIP.
    The DB of my application can't be requested directly, then I use HTTP request.
    From BIP, I launch the report choosing excel as output - the template is an rtf template.
    I have been requested to open or save the xls file that I save (32 MB).
    I open the excel file, save it again and the size of the file is now 8 MB.
    Regards,
    Sonia.

  • Can't open .xls files created by Numbers

    All of a sudden, using Numbers '09 I can no longer open certain .xls files that I created in the first place by saving .numbers files as Excel files (using the "Save copy as Excel Document" checkbox in the Save As... dialog box). Some will open, but the vast majority attempt to open, and then I get an "Import Error - An unknown error occurred." message. Backed up copies of the same files produce the same result. New .numbers files I save as Excel documents can't open either.
    Background: Earlier tonight while saving a .numbers file as an Excel Document, the blue "progress" bar got about halfway and then just hung there. Having not rebooted the computer for a couple of weeks, and lots of apps open, I proceeded to shut down other processes and eventually the blue progress bar finished and an Excel file was saved. However, after rebooting the computer, the above inability to open Excel files started to occur. Something in the "save as" process must have corrupted?
    I quit Numbers, deleted the com.apple.iwork.numbers.plist file from Library/preferences, emptied trash, and restarted Numbers -- but that didn't solve the problem.
    What would you all suggest now at this point? Would reinstalling Numbers solve this? (hmmn, where is that disc?) I'm personally fine with the .numbers format, but my clients are not, hence the need to save as Excel documents. Any help would be appreciated!

    ack, this whole thing is frustrating. I can create new .numbers documents, save them as Excel documents, and those resulting .xls documents will open fine. HOWEVER, if I grab an old .xls document from a time machine backup (over a month ago), I cannot open it. Nor can I open an newly saved .xls document saved from the same original .numbers file.
    It would seem that the only thing I can do now is take those old .numbers files and copy/paste the content into a brand new .numbers file. After saving as, the resulting .xls files open fine (with the usual "import warnings", but I'm used to those )

Maybe you are looking for

  • Dispute management - please help

    Hi Gurus, When I search for a dispute case using transaction UDM_DISPUTE then getting error below. It is not giving any additional information. When I click the message then I am directed to main menu. no RFC destination could be determined for the m

  • Message as yellow error

    Hi friends, I wanted to know abt message in report. I am fetching the records from two different database table i.e. kna1 & lfa1. Suppose I am not getting the data for kna1 but the data is available for lfa1. My req. is like if no data is available f

  • HP 8625, cannot see Print Preview or Select Pages

    On my new HP 8625, I cannot see the Print Preview feature nor can I select to print specific pages.  This used to work on my HP c309, so I'm thinking perhaps it's a printer driver issue.  I am specificially having this issue with Excel but it may be

  • Why is the customer service poor!?

    I can't even get to a REAL person using your customer service line! The in-store reps are worse! I will be leaving Verizon soon!

  • View previous precalculated web template

    Hi, I'm working with Reporting Agent, because I need Precalculated Web Templates in my portal. I need to access, not only, the last precalculated Web Template (i.e. this month), but also the others (previous months)! How can I view previous precalcul