home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / informix / 3090 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.2 KB

  1. Path: sparky!uunet!europa.eng.gtefsd.com!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!agate!overload.lbl.gov!prem.lbl.gov!prem
  2. From: prem@prem.lbl.gov (shirdi prem)
  3. Newsgroups: comp.databases.informix
  4. Subject: How To Distinguish Null Values in UNLOAD ??
  5. Date: 28 Jan 1993 19:32:02 GMT
  6. Organization: Human Genome Center at LBL
  7. Lines: 17
  8. Distribution: world
  9. Message-ID: <1k9cbiINNigd@overload.lbl.gov>
  10. Reply-To: prem@prem.lbl.gov (shirdi prem)
  11. NNTP-Posting-Host: prem.lbl.gov
  12.  
  13.     Hi gurus,
  14.  
  15.         I need to dump data from an Informix 2.10 database into an ASCII file. 
  16.     Fine. No problem. But, the program which uses the ASCII file needs to know 
  17.     which values are NULL. The straight UNLOAD statement does not seem to 
  18.     provide any way to distinguish a NULL value in a column from a value which
  19.     has 4 spaces. In either case, the output ASCII is a bunch of blanks. Is 
  20.     there a way around this ??
  21.  
  22.         Ideally, I would like to put a '.' (dot) in the ASCII file for those 
  23.     entries which have a NULL value. And leave spaces for those entries that
  24.     really are spaces.
  25.  
  26.     I appreciate your help very much,
  27.  
  28.     Prem!
  29.     prem@prem.lbl.gov
  30.