SET COLSEP does not insert character if the column is null or empty - please help

Hello experts,
This is probably a question of beginner and I can't seem to find the answer. I train at the output of the coil of a simple SQL query to a file .txt or .csv using colsep as the column separator that prints fine except when there is a column value empty. Here is my SQL:
recsep off Set
set linesize 240
NewPage 0 value
set pagesize 9999
the value of colsep «;»
BREAK ON JUMP MESSAGE_SET_NBR 1 ON LAST_UPDATE_DTTM
Select D.MESSAGE_SET_NBR, S.DESCR, D.MESSAGE_NBR, D.LAST_UPDATE_DTTM, D.MESSAGE_TEXT
PSMSGCATDEFN D, PSMSGSETDEFN S
WHERE
D.MESSAGE_SET_NBR = S.MESSAGE_SET_NBR AND D.MESSAGE_SET_NBR BETWEEN 999 AND 19999
ORDER by D.MESSAGE_SET_NBR, D.MESSAGE_NBR ASC, S.DESCR
Here is an example of the data that are generated. The missing splitter really screw up my spacing outfile. Please note the last line that is missing from the colsep the missing date.

18177; Applicant tracking messages. 2582; APRIL 13 07; Some applicants, %1, do not have an email address in the order
; Applicant tracking messages. 2613; 7 FEBRUARY 07; Rejected candidates
; Applicant tracking messages. 2614; 4 APRIL 07. Select the employee to whom the plaintiff is routed
; Applicant tracking messages. 2615; 7 MARCH 07; The name of this source is in use.
; Applicant tracking messages. 2616; JULY 2 09; Subsource name is in use.
; Applicant tracking messages. 2617; 12 OCTOBER 10; Jurisdiction is not specified for one or more skills.
; Applicant tracking messages. 2618; Please enter a value in the field before continuing.

Thanks in advance for your help!... Jason

Published by: user957626 on June 16, 2011 14:40

Hi Jason,

Welcome to the forum!

Usually, when you go to waiting a .csv file, you want to concatenate the columns together as

select empno || ';' || ename || ';' ||job from emp;

Downside is that you need to SET 0 PAGES and then produce your own header.
Something like

PROMPT Empno;Ename;Job 

Alternatively, if you want to pursuit the COLSEP approach, you can play with

SET NULL text

Concerning
Peter

Tags: Database

Similar Questions

  • How to assign the text value when the data in the column is null or empty

    Hello guys

    I have a small question

    I have a column A that half of its value is empty, now the condition is that whenever the column is empty, assign "N/a" in the column... So I wrote a code which is:

    <? If: not (column A)? > column a = 'n/a' <? end if? >

    However, when I preview the RTF model, the data in the column still has not changed at all, many lines are still empty and did not show 'n/a '... The column is of type text

    Please advice

    Thank you
    N/A
    
  • COMPAQ CQ57 laptop Presario: Don't detect my webcam and the microphone does not hear my voyce. What is can do it please help me!

    HY everybody.

    My webcam wasn't working. What I can do... ? Please help me. I tried some drivers and nothing... in Skype tell me. (Skype is not detect any webcam), and the microphone works but not listen to my voce the other person I talk to... where is found this driver who can do to be able and see my webcam and listen to my voyce microphone when is make a call Skype for example or facebook or another program that uses my webcam and microphone. where are found this driver compatible with my webcam. There tried this driver on Cyberwebcam here and does not

    is not compatible. What can I do please help.

    \Please help me solve this disorder a y will be aprecieded

    In windows, check 'device manager' and make sure your webcam is enabled and disabled.

  • Flash does not correctly install in the directory Plugins of Firefox 3. Help!

    Hello

    I had a real bear trying to get flash works with firefox 3. For awhile, I've been runing Firefox 2 and Firefox 3 beta/RC side by side (installed in different directories, of course), but now that Firefox 3 is out, I uninstalled Firefox 2 and do a fresh install of Firefox 3. However, when I try to run the Flash Player installer, it lists the "output folder" as "C:\WINDOWS\system32\Macromed\Flash" and does not affect the directory of the Firefox plugin - which of course means that Firefox does not know that the plugin is here.

    I don't know if it's the default behavior and some files are copied but not correctly, or if the output folder is simply false, but if I manually copy the contents of the C:\windows\system32\macromed folder in the plugins directory, flash works in Firefox.

    I need the installer works well. Can someone help me with this?

    Thanks in advance.

    OK, I found the problem: there are incorrect permissions in the registry. The Administrator's guide led me to this page: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19148&sliceId=2. I discovered the HKLM/Software/Macromedia registry key (as well as two key in HKLM/Software/Mozilla, Firefox and ' HKLM/Software/Mozilla Plugins') was inaccessible to the administrator; I had to take possession of the key and replace the permissions.

    So the problem (get flash to install correctly) is now fixed. I guess the problem didn't rear its head with older versions of flash, because they have installed the flash plugin in the directory plugins of firefox rather than rely on the registry.

    Thanks for all your help!

  • drive CD shows autoplay, autoplay shows cd drive, but does not open automatically when the cd or dvd is inserted

    drive CD shows autoplay, but does not open automatically when the cd or dvd is inserted

    original title: Watch autoplay cd player

    OK, got cha.
    Try this:

    http://Windows.Microsoft.com/en-us/Windows-Vista/Change-AutoPlay-settings
    b Eddie

  • I can't install my Adobe Acrobat 9 Pro in my new HP Pavilion all-in-one computer desktop drive, because my new HP does not insert the disc in a disc drive.  What can I do to fix this problem?

    I can't install my Adobe Acrobat 9 Pro in my new HP Pavilion all-in-one computer desktop drive, because my new HP does not insert the disc in a disc drive.  What can I do to fix this problem?

    Hi edwards39572619 ,

    Please visit this link to download Acrobat 9 Pro:-download Acrobat 8 and Acrobat 9

    Let me know how it goes.

    Kind regards

    Christian

  • Why the function "Insert an Image" does not insert the code at the location of the cursor?

    I mainly work with php files and I'm still working in code view only.  I am editing the php files that I wrote using a different code a few years ago Editor.  I place the cursor to the place in the code where I want to go the image tag and use the menu "insert an Image".  The code is then placed directly under the < body > tag.  It is always placed in the same place no matter where I place it in the code.  Can someone tell me what is happening here?  Thank you.

    Not sure why it does not insert the image where the cursor is, but my workflow is much easier. I mainly work in code view and I will drag the image from the files Panel to where I want to in my document. Simple

  • I have created my version of Office Web site, but when I try to transfer them to the phone or Tablet setting it does not merge the info previously created on the desktop

    I have created my version of Office Web site, but when I try to transfer them to the phone or Tablet setting it does not merge the info previously created on the desktop

    Hello

    When you try to create a layout of desktop-based Tablet or phone you can get 3 options open to copy the layout of office. This do not understand the content placed in the pages.

    However, you can view each page individually and can copy the contact that you want to move the tablet or phone. then open the same presentation page of the Tablet/phone and use Edit > paste in Place then move and resize the elements according to the size of the layout.

    You can also take a look at the link below to better understand the available phone/tablet.

    Jam Muse: Designing for mobile devices in Muse - YouTube

    Please let me know if you need help for the same.

    Concerning

    Vivek

  • What are the causes of media error does not exist, even with the inserted disc

    I have a video project of 2 h I want to put on a DVD in NTSC format.  I get a msg of error 'Media does not exist', even with the DVD inserted in the drive.  I checked "Fit content to the space available.  Is the hr project 2 too long to compress the DVD, or are there other possible causes?  I have made a project of 1 1/2 hours without any problem.  I have a lot of hard disk space.

    Download orders

    What version of Premiere Elements and on what operating system works - it?

    The problem is the disc in the tray of the burner not recognised by Premiere Elements. Another frequent related issue is location of burner: burn dialog is empty when the Premiere Elements does not recognize the burner.

    In the problem that you have.

    have a. you tried other brands/types of DVD discs?

    b. If you start a new project and take the new timeline content DVD-video to DVD disc, the problem remains the same?

    B. have you tried to uninstall / free program ccleaner cross / reinstall with antivirus and firewall disabled?

    If you are in a time crunch, you should consider burning the chronology contained in the record and then taking the the VIDEO_TS folder

    recorded in a program like ImgBurn for DVD-VIDEO on DVD production.

    Please check and review and then provide you with the way to details. Looking forward to your results.

    Thank you.

    RTA

  • The 'resolution' (Muse CC) Set option does not appear in my Site Properties Panel.

    The 'resolution' (Muse CC) Set option does not appear in my Site Properties Panel.

    Hi Chris,

    The set option of the 'Resolution' is visible only when you click on the tab content in site properties and not in the page layout section. Please refer to this screenshot: http://prntscr.com/4blm1s

    See you soon,.

    Rohit Nair

  • ORA-13754: 'SQL Tuning Set' 'string' does not exist for the user "sysman."

    ORA-13754: 'SQL Tuning Set' 'string' does not exist for the user "sysman."

    Hello
    in 10g R2 when I run the following in isqlplus I error of the United Nations:
    SELECT * FROM TABLE(DBMS_SQLTUNE.SELECT_SQLSET(
    'my_sql_tuning_set',
    '(disk_reads/buffer_gets) >= 0.05'));
    
    ORA-13754: "SQL Tuning Set"'my_sql_tuning_set" does not exist for user "sysman". 
    No problem if I run it as sys to sqlplus.

    Thanks for the help.

    How to activate for sys isqlplus?

    You are logged in as sysman,

    Check the user from the sql prompt.

    show user
    
  • Equium A210-17i does not supply power to the top only with the power adapter plugged

    Equium A210-17i turn on when the battery is missing, but the laptop is set to the power supply dc?

    I have a dead battery and the laptop does not light with or without the battery inserted.
    The food came out 19v as it is supposed to.

    Also no led lights on the laptop when the power is connected and there is no sign of life at all by pressing power buttun.

    Thanks for any response.

    Hello

    The laptop must also lights up if the battery is not inserted.
    If the adapter is ok and if it s connected to the laptop, then the power led should be lit and it should light up.
    This led indicates that AC adapter provides power to the laptop properly.

    But if the LED turns OFF then that would mean that there is no power, and in this case the laptop will not turn on.

  • Dreamweaver server behaviors, can not insert data into the database

    Hi, I tried to use server behaviors to add registration information in my database in my registration page.

    (1) that I created a login page, and it works very well. This means that connections and the connection works fine database so it can match the record in my database.

    (2) but when I tried to download the news in the form of database, it does not work. When I clicked on the service behavior to double check the action "insert data", it always jumps the error message: "When executing inspectserverbehavior in InsertRecord.htm, a javascript error occurred."

    I copied my code below. Except the form code and a little jquery is written by me, most of the code generated by Dreamweaver.

    <? php require_once('Connections/MAMPPRO.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "Register_Form")) {}

    $insertSQL = sprintf ("INSERT INTO"user identity"(Ui_LastName, Ui_Email, Ui_FirstName, Ui_Password) VALUES (%s, %s, %s %s)", ")

    GetSQLValueString ($_POST ['Register_Firstname'], "text").

    GetSQLValueString ($_POST ['Register_Lastname'], "text").

    GetSQLValueString ($_POST ['Register_Email'], "text").

    GetSQLValueString ($_POST ['Register_Password'], "text"));

    @mysql_select_db ($database_MAMPPRO, $MAMPPRO);

    $Result1 = mysql_query ($insertSQL, $MAMPPRO) or die (mysql_error ());

    $insertGoTo = "LoginSuccessful.php";

    If (isset {}

    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;

    $insertGoTo. = $_SERVER ['QUERY_STRING'];

    }

    header (sprintf ("location: %s", $insertGoTo));

    }

    @mysql_select_db ($database_MAMPPRO, $MAMPPRO);

    $query_Recordset1 = "SELECT *"IDENTITY of the user;"

    $Recordset1 = mysql_query ($query_Recordset1, $MAMPPRO) or die (mysql_error ());

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    $totalRows_Recordset1 = mysql_num_rows ($Recordset1);

    ? >

    <! doctype html >

    < html >

    < head >

    < meta charset = "UTF-8" >

    Registeration < title > < / title >

    "< link href="jquery-mobile/jquery.mobile-1.3.0.min.css "rel ="stylesheet"type =" text/css">

    "< script src="jquery-mobile/jquery-1.8.3.min.js "type =" text/javascript"> < / script >

    "< script src="jquery-mobile/jquery.mobile-1.3.0.min.js "type =" text/javascript"> < / script >

    < / head >

    < body >

    < div data-role = 'page' id = "registrationpage" >

    < div data-role = "header" >

    < h1 > welcome!    < / h1 >

    < h1 > register yourself! < / h1 >

    < / div >

    < data-role = 'content' div > < / div >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "POST" id = "Register_Form" name = "Register_Form" >

    < p >

    < label > Email < / label >

    < input name = "Register_Email" type = "email" required id = form register_email = "Register_Form" title = "Register_Email" >

    < label > < br >

    Password < / label >

    < input name = "Register_Password" type = "password" required id = form register_password = "Register_Form" title = "Register_Password" value = "" >

    < /p >

    < p >

    < label > name < / label >

    < input name = "Register_Lastname" type = "text" required id = form register_lastname = "Register_Form" title = "Register_lastname" value = "" >

    < label > < br >

    First name < / label >

    < input name = "Register_Firstname" type = "text" required id = form register_firstname = "Register_Form" title = "Register_Firstname" value = "" >

    < /p >

    < name of entry = "MM_insert" type = 'submit' form 'Register_Form' value = 'Registration' = >

    < input type = "hidden" name = "MM_insert" value = "Register_Form" >

    < / make >

    < a href = "index.php" data-role = "button" > return to connection < /a > "

    < div data-role = "footer" >

    footer < h4 > < / h4 >

    < / div >

    < / div >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($Recordset1);

    ? >

    Finally I found the problem.

    It seems in my setting, MAIL does not work in live mode DW. But if moved to any explores, it works fine.

    Adobe really needs to improve its management of PHP.

  • Tecra M7: Tablet does not work after closing the lid

    Someone had problems with the Tablet does not work after closing the lid on a Tecra M7? BIOS is 3.20

    Does not happen on hibernate or sleep.
    I have the set cover to do nothing on close.

    Hello

    What do you with Tablet does not work after closing the lid?
    Is - what the laptop freezes or what? What happens exactly?

    Closing the parameters adjustable lid to Hibernate or standby mode or no action.
    These settings can be defined in configuration power saver actions.

    If you have some problems with some Toshiba applications installed, I recommend you to reinstall the program and TOSHIBA common Modules that doesn t work properly!

    Best regards

  • One of the USB devices attached to this computer has malfunctioned and Windows does not recognize it. The location is the root (2 ports) USB hub: 1-unknown device and Port 2-not used

    Original title: USB device not recognized

    Over the last 2 weeks, I get a message on a USB device.  The message said that one of the USB devices attached to this computer has malfunctioned and Windows does not recognize it.  The location is the root (2 ports) USB hub: 1-unknown device and 2-unused Port.  I have no idea what it means.  I hesitated to first click the icon (it does not last very long) thinking it could be a scam.  Can someone help me?  Thank you.

    Hello

    (1) is the specific question of specific USB devices?
    (2) did you of recent changes to the computer before the show?
    (3) have you tried plugging the USB stick on another computer?

    (4) what is the brand and model of the computer?

    I suggest to refer to the following methods and check if it helps to solve the problem.

    Method 1: Hardware devices do not work or are not detected in Windows

    Run Microsoft Fixit mentioned in the article.

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2: USB Port may stop working after you remove or insert a USB device

    http://support.Microsoft.com/kb/817900

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows

    Reference:--

    Advanced troubleshooting tips for General USB for Windows XP problems: http://support.microsoft.com/kb/310575

Maybe you are looking for

  • iPhone 7 more stuck on black screen with the spinning wheel

    How can I fix it? I tried to reset, go into DFU mode, recover from iTunes. Nothing works. I can't use iTunes because he wants me to grant access from my iPhone is not responding. DFU mode doesn't work, the screen does not any combination of seconds I

  • SIM card for Toshiba M400 tablet

    I put a Vodacom/Vodafone SIM card into the slot at the bottom of the computer, but I don't know how to access or allow it. MOBILITY does not seem to have an option for a SIM card. The SIM card is normally used in a mobile phone or 3G data card to con

  • Y510p where to buy ultrabay GTX755M SLI card?

    As such, is there a reference number for this accessory?

  • Aspire driver windows wireless 7 ES1-521

    I have an Aspire 5741 and the wrieless does not work.  I've updated the BIOS and that is has not yet fixed the problem. It's my 4th factory reset and it still won't connect to my router.  Network troubleshooting does not resolve as well. I checked th

  • Internet Explorer & Firefox - website found waiting for reply...

    Internet 'NAVIGATORS' web pages not recovery. I get the Message of Internet Explorer at the bottom says "website found, waiting for response... » Same for Firefox. Says "connection, wait for google.com...". » This is not a connection problem because