home *** CD-ROM | disk | FTP | other *** search
- 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
- From: prem@prem.lbl.gov (shirdi prem)
- Newsgroups: comp.databases.informix
- Subject: How To Distinguish Null Values in UNLOAD ??
- Date: 28 Jan 1993 19:32:02 GMT
- Organization: Human Genome Center at LBL
- Lines: 17
- Distribution: world
- Message-ID: <1k9cbiINNigd@overload.lbl.gov>
- Reply-To: prem@prem.lbl.gov (shirdi prem)
- NNTP-Posting-Host: prem.lbl.gov
-
- Hi gurus,
-
- I need to dump data from an Informix 2.10 database into an ASCII file.
- Fine. No problem. But, the program which uses the ASCII file needs to know
- which values are NULL. The straight UNLOAD statement does not seem to
- provide any way to distinguish a NULL value in a column from a value which
- has 4 spaces. In either case, the output ASCII is a bunch of blanks. Is
- there a way around this ??
-
- Ideally, I would like to put a '.' (dot) in the ASCII file for those
- entries which have a NULL value. And leave spaces for those entries that
- really are spaces.
-
- I appreciate your help very much,
-
- Prem!
- prem@prem.lbl.gov
-