Excel output issue for a separate script file sql semi colon

Hello

I will execute a simple SQL script with back to back queries Select leading; separated from text output.
I save this output as a text file and open it in Excel specifying delimited with;

For example -.
SQL script is as follows:
Landlines 5000

SELECT "error Code" | « ; » ||' Error message '
OF the double
/
SELECT lookup_code. « ; » || Description
OF fnd_lookup_values
WHERE lookup_type = 'NLUS_AR_INT_ERROR_MSG. '
ORDER BY TO_NUMBER (LTRIM (lookup_code, 'E'))
/

The output recovered has the following questions: 2
1. a blank row is inserted after the Message error code «error» I need remove this blank line.
2. the 2nd question I am facing is that a blank line is inserted after every 62 lines in excel.

Please let me know how I can remove these blank lines that appear after every 62 lines and between each query results.

Thank you
Aditi

For the first question, you can try the command 'prompt '.

For the second question, you can add a command "set pagesize 0" in your file from sqlplus.

You can use "set trimspool on ' to elimate white at the end of each line in your outputfile (if you want).

set termout off
set feedback off
set heading off
set echo off

set linesize 5000
set trimspool on
set pagesize 0

spool c:\temp\abc.txt

Prompt Error Code;Error Message

SELECT lookup_code||';'||description
FROM fnd_lookup_values
WHERE lookup_type = 'NLUS_AR_INT_ERROR_MSG'
ORDER BY TO_NUMBER(LTRIM(lookup_code,'E'));

spool off

Published by: hm on 31.03.2011 04:41

Tags: Database

Similar Questions

  • The Devs creating their active Frame for a separate QML file covers? I'm stuck

    Bit in trouble, I do my best to bring my Apps support 10.2.1 10.2.2 I practically everything by working the * beep * covers Active, I did do a check and create the file QML according to less than 10.3 or greater

     ComponentDefinition {
                id: creator;
                source: ""
                function createQMLObject(sourceUrl){source=sourceUrl; creator.createObject()}
            }
    

    Feel free to use that btw ^.

    if(olderFirmware===true)  Application.setCover(creator.createQMLObject("CoverOlderFirmware.qml"))
            else{Application.setCover(creator.createQMLObject("Cover.qml"))}
    

    Now for some reason, they do not work, they seem to be created, but do not want to show, normally I would create it from my main.qml but the passport and its lid Multi forced me to separate the covers in their own QML files

    Begins like (not included UI code)

    import bb.cascades 1.2
    
        SceneCover {
            id: large
    
            content: Container {
                background: Color.create("#000000")
                layout: DockLayout {}
    }
    }
    

    Place in a container gives me a weird error on not able to create a list in an object, probably referring to MultiCover and SceneCover as a child of the container.

    Any suggestions?

    I use active selector to do this, find in this application example:
    https://github.com/RodgerLeblanc/AssetSelector

    This method can support 10.2.1 users and below, don't forget to add the lines of c ++ this blog:
    https://bb10code.WordPress.com/2014/12/10/active-frame-made-easy/

    Check your email, I also sent you something on your last post on the forum.

  • Import Excel to use with the PowerCLI script file

    I would try to ingest the VMware Hardening guide Excel file and then use it to run a script on some columns as column "configuration setting.

    If I can get the "Configuration parameter'"desired value""Default value"and"ID of the guideline"a powershell script, it would be easy from there.

    Someone did he do something like that or it can crack in Powershell?

    If you save the HG as XLSX file, just open the XLS and save under a XLSX in Excel, you can use the function import - Excel of Finke.

    How to install and use is described on the Github page.

    So is boils down to

    Import-Excel vSphere_6_0_Hardening_Guide_GA_15_Jun_2015.xlsx |

    Select "Configuration parameter', 'Value', 'Default value',"Orientation Id"

  • Export PNG with the correct name, for each layer, script file frame foreach

    Hello guys,.

    I am trying to find a script that exports each separately from the layer in PNG, for each image, with the correct name. By example, if the layer is named snail and lies in a forest of group name and is like 6, export this layer as a PNG named forest.snail.06.png (recursion if possible) and this for each layer, for each image...

    I found a software named Layerex, they speak here about layers export Flash | Global Facilitation network

    But I could not find... If you guys know how to do, it would be so awesome...

    Take care

    Simon

    Using jsfl.

  • Collect the Thread Dump using Script and live in the separate log file

    Legends of dear,

    I ask you to provide me with a few lines of useful guide to collect the Thread Dump using script on linux and redirect the output to a separate log file, but not the STDOUT file. If it is redirect to STDOUT then how to extract only the thread stack to a separate log file.

    I used
    ps - ef | grep java
    kill - 3 < pid > > > ss1_td.log

    but it does not provide the thread stack to the log file.

    Any aid operation would be appreciated a lot.

    Kind regards
    Knockaert

    Karthik,

    Please see this link below

    http://www.industryvertical.co.in/2013/01/script-thread-dump-of-multiple-servers.html

    site of my friend where we placed a hands-on experience.

    Mark this if useful for you

    Kind regards

    Bouchra Arun.

  • I would like a more efficient sorting for organizing files, a similar to the options available via EXCEL. I want to sort the files from Windows 7 Desktop AND type update...

    I would like to apply a more efficient to organize the display of files, a similar to the options available via EXCEL.  I want to sort the files of desktop Windows 7 by type AND update... looks like it would be a logical way to view the files.  Currently, I can do one or the other.  Sort by modified date provides a hodgepodge of file types, sort by type will not most recently changed... organize a hodgepodge of dates.  You wonder why I felt it necessary to ask this... seems to be a simple and logical option which would already be available.  Is it?  If so, how can we do this?

    I don't know where you see all sort in excel. The file > open in excel procedure uses this same kind as provided by the Explorer (its Explorer discovers Documents)

    The view in excel is obviously filtered to Excel docs.

    You probably need to rethink your documents folders stratergy

  • can not find script file "c:\". WINDOWS 32\system\system32.db»

    can not find script file "c:\". WINDOWS 32\system\system32.db»

    Hi bushra2000,

    Provide us more information on the issue:

    · You receive this error during the startup process?

    · You receive this error message when you work with an application or a program?

    · You have security software installed on your computer?

    · What is the service pack installed?

    Virus scanner to check that there is no virus or malware on your computer activity. You can check the link for the following online antivirus scan: http://onecare.live.com/site/en-us/default.htm

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Previously, work job FTP in the batch file gives message "error opening script file.

    I have two FTP jobs on two separate machines that I've been running as tasks scheduled for a few years with success.  They are on the same network, but we're on the field, the other is out of the field.  Both are Windows XP SP3.

    Starting this week, two of them fail when you try to load the actual script FTP file.    Here is an example of the ftp command that I use: FTP d - n-i-s:C:\scripts\getmyfiles.txt

    The message says "Error opening C:\scripts\getmyfiles.txt" and displays help FTP.  I should also mention that the FTP seems to work fine if I connect from the command prompt, and does not use a script file manually.

    Both of these batch files containing similar (different but calling script files) FTP commands were executed the week last successfully.

    Any suggestions are appreciated!

    Hi Kristin,

    The question you have posted is better suited to the MSDN forums. You can ask your question in the help link.

    http://social.msdn.Microsoft.com/forums/en/categories/

    Hope the helps of information.

  • Tips for getting separate piles of Visio 2010 and Project 2010?

    Individually, neither app is a problem, but when two of them applies whatever app has changed without issue.  The other invites a reconfiguration of the Office the first launch.  He does that very well and goes to open normally, but it is always 60 seconds of drawbacks, every time.

    Is there another trick to have separate batteries for these two applications when applying both?  After Office 2010 is installed in the image of the mother, they all have the same SP (SP2) level.

    Reports say that Plan B worked.

    Capture every app while it is already installed resulted in successful construction of piles of separate application.  For each application, I installed the app (shared files deselected and tools) and the update only I included in the folder "Updates" (used to automatically install updates during installation) was the core SP2 msp for the app (no files msp evidence or verification, no updates to mui, no update of clientshared (, etc., because I didn't select them to install in the first place).  The piles of relatively small guard, too.

    For some reason any application for each application stack still reports the MUI and shared components such as being captured, but the report of versions as "(null)".  No big deal for me, I guess.

  • I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I have a link to a PDF file to another and use the button "Previou

    I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is configurΘ for dΘmarrer with bookmarks displayed, however if I have a link to one PDF file to another and use the "back" button to return to my starting point bookmarks are replaced by "vignette". Is there anyway to prevent this?

    Hi Mike,.

    While the implementation of the links, if you choose to open the file in a new window then you will not experience this issue, then you can simply switch to the file view and previous bookmark will remain as it is.

    Is that what helps with your query?

    Kind regards
    Rahul

  • Questions of EXCEL output in the XML editor logo

    Hello

    We use the Publisher XML API to generate PDFS, EXCEL returns by using the template. When adding image for the model of its display in the output pdf file. But not in Excel output projection. Then I added url: {/ Image} in the text of the image in the template and submitted the report again now able to see the image output to excel. Can you please tell me why his does not display not not the picture in excel by default which is the line that goes in the case of PDF. IAM getting the same question for HTML output generation also. Please tell me what I can do to get the image by default identical to the way I'm in PDF format.

    Thank you
    Satya

    for the xml editor:
    How to determine the Version of the Publisher Oracle XML to Oracle E-Business Suite 11i and Release 12 [362496.1 ID]

    >
    To resolve this problem, we need to make manual configuration image as menioned in the document 736897.1?
    >
    It is based on your report and your needs

    It's may be:
    -OA_MEDIA and url as the url: {' ${OA_MEDIA} / your_image'}
    -URLs as interface http as url: {'http://www.servernews.ru/assets/images/articles/594131/OracleLogo.jpg'}
    -logo by submodel

    then you can try the logo by OA_MEDIA

  • Putting the page header in a separate php file

    I have read that it is advisable for the page header in a separate php file, meaning that when changes are made, they are done in one place and reflected throughout the site.

    But including the headers in a separate file increases the download time of the page. What do you do in this case?

    It is as fine as all pages of a website bear .php extension. Y at - it compromise.

    yashi58 wrote:

    But including the headers in a separate file increases the download time of the page.

    No, it isn't. The PHP engine adds the output of include files before sending the response to the browser. The only time using include files increase download time is if you have complex programming logic in the file, but the time required to process this logic would be the same even if he was in the same folder as the home page.

    The only thing you should pay attention to when using include files is that Dreamweaver has difficulties if you put the doctype.,, andtags in an include file.

    Use for all of the include files .php file name extension. But it is not mandatory, it's safer.

  • Run script file

    Hello
    I am trying to run the SQL script file.
    My script contains a list of all the triggers.
    SQL plompt when I run the file as
    SQL > @d:\triggers.sql
    It returns a number like
    4223



    When I hit enter, it increments of 1 (4224) and so is not even allow me to get out.
    I am not very clear what this output means. I tried to take the output to text file per winding. But only the empty file was created.
    What happens exactly?

    Hello

    Looks like there is an error in the triggers.sql.
    For example, output that could be cause of triggers.sql creating a stored procedure or package that does not end with a /. SQL * Plus will think everything you enter is part of the procedure or package.

    Make sure triggers.sql has had / has (on a line by itself) after the last command at the END of each CREATE TRIGGER (or similar object).
    If you still have problems, make a much smaller version of triggers.sql, which causes a similar error and post it.

  • PreSonus Studio One won't let me read the downloaded videos to unplug, the message reads "the licence has not been issued for this computer", the Logo ONe Sudio appear

    I downloaded a video of my own using the Firefox Addon to unplug myspace page. It saved in my files, but when I try to open it, I get a message that says: 'a licence was not issued for this computer. When I click 'ok', it brings me to the block Presonus Studio One asking me to purchase a license now. In fact, a licence was issued to this computer, and I understand that there is a problem with customers not getting Presonus does not properly established with the approval of their product. But it shouldn't stop me from playing my own videos on my own computer.

    Sorry, never heard of this software before. How are Firefox users able to listen to the music that is created b this software.
    A specific package of DRM?
    A specific plugin?

    As may of Adobe Flash?

    It seems that you have two plugins Flash for Firefox. Not a good idea because it may confuse Firefox. Try to get rid of the old version.
    Shockwave Flash 17.0 r0
    Shockwave Flash 16.0 r0

    Have you tried to get support through the PreSonus for one?
    https://forums.Presonus.com/

  • The GT630 that came with my HP h8 - 1360t output VGA for my HP w2007 monitor?

    I did research on this issue since about an hour and have not found an answer 'solid '.  There is no VGA/DB15 port on my video card and NVIDIA site presents DB15 ports when their 630 s.

    So I ask

    1. Why are there no DB15 port on my card?
    2. The GT630 that came with my HP h8 - 1360t output VGA for my HP w2007 monitor?
    3. Maybe this'll work via the HDMI port?
    4. I get full/native resolution?
    5. I have the NVIDIA GT 630 or 630 GT OEM?

    Thank you in advance for you help.

    With the help of a PC HP HPE h8 - 1360t, monitor HP w2007, Win 7 and I am very grateful!

    Thank you for the updated information.  Unfortunately, I can't say that the OEM version will allow the adapter VGA to add or not.  I have found no information about this issue and I don't have access to a review and provide a precise answer.  If someone has done this, feel free to chime.

    About the add-in VGA, remember that the back plate will have a slot for him as well. Personally, I do not recommend physically modding any component due to the concern about security.  You might want to consider the limited warranty.

    The big problem, as you will encounter, but most computers use DVI - D.  VGA is purely analog and DVI - D is only digital.  Most PCs now use DVI - D, which will not work with a simple DVI - VGA adapter.  The converters that would a DVI - D to work with VGA are generally expensive (even more than a DVI KVM switch).  There are DVI - D to VGA adapters that work, but they are rare and usually not specified.   It'll be cheaper to start with a DVI - D to VGA (provided that the DVI port is DVI - D).  This claims to be a DVI - D to VGA.  Base don this siteand the image, the adapter doesn't seem to be an adapter DVI - D dual link would work.  However, some reviewed said that he is in reality a DVI - I adapter that would work for this scenario unless the video card's DVI - I instead.

    The following options would be to use a KVM DVI switch or upgrade the monitor.  From my research, it seems that he had options in two similar categories in the price.

Maybe you are looking for

  • How to permanently stop the suggestion 'Get it now '.

    Recently, I just noticed what looks to be a popup suggestion of Firefox under my toolbarConstantly, he seems to talk to me about iOS and Adroid and 'Get it now '.How to stop it permanently?

  • Satelite P50-A-14F - Caps Lock key does not work

    Hi all My CAPS LOCK key does not work on my laptop series satellite P50-A-14F. Just realized while writing an email that does not work, so is more or less sudden. Nothing has been spilled on it. Here's what I've checked so far: -green light indicatin

  • Control the execution of different threads in TestStand

    Hi all I'm trying to control multiple threads in a sequence file.  I have if I'd be able to use the following ThisContext.Thread.Execution and then terminate / break / etc as you wish. I'm starting a new sequence threaded in the process configuration

  • C7250 interrupted automatically Duplex print

    Reinstalled Windows 7 after the crash and reinstalled latest printer drivers. Photosmart C7250 print duplex automatically interrupted. Double-sided printing is now limited to "manual".  Worked well before. That's happened?

  • remove the screens from the stack

    I develop a secure application. So if screens are stored in the battery, then after the expiration of session or disconnection, if the user presses the button back (escape) and then the user can view other screens as the screens are sauteed one by on