LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 22 Sep 2008 16:12:26 +0200
Reply-To:   Richard.Hooijmaijers@KINESIS-PHARMA.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Richard Hooijmaijers <Richard.Hooijmaijers@KINESIS-PHARMA.COM>
Subject:   Re: exporting blanks
Comments:   To: jim.1stat@YAHOO.COM
In-Reply-To:   A<200809221358.m8MAm9on026866@malibu.cc.uga.edu>
Content-Type:   text/plain; charset="us-ascii"

Unfortunately another no.. Tried both options but the missing character is already a '.' so that didn't change anything. I also really thought that the generating a text column of the numeric value and hard coding all . to "." would do the trick but somehow when exporting the dataset it puts it back to blanks.. Thanks however..

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Jim Groeneveld Sent: 22 September, 2008 15:59 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: exporting blanks

Hi Richard,

In various cases OPTIONS MISSING='.'; might help, but I'm not sure whether it'll help you too, it's officially intended for numerical variables only. Another option is to recode all exclusive single spaces to a dot before writing them out: (*untested code*)

DATA ........ (DROP=I); SET .........; Array AllChar (*) _CHARACTER_; DO I = 1 TO DIM(AllChar); IF (MISSING(AllChar)) THEN AllChar = '.'; END; RUN;

Regards - Jim. -- Jim Groeneveld, Netherlands Statistician, SAS consultant home.hccnet.nl/jim.groeneveld

My computer and I present macro Count with SPSS-like syntax at PhUSE 2008.

On Mon, 22 Sep 2008 13:28:04 +0200, Richard Hooijmaijers <Richard.Hooijmaijers@KINESIS-PHARMA.COM> wrote:

>Hi, > >I have a question regarding the export of blank (numeric values). I >would like to export a SAS dataset to a prn file (space delimited). But >in the exported file I would like to have a "." for missing numeric >values instead of a blank value. Is there a way to do this? I managed >to do it for a csv file by using ODS, but it won't work for a space >delimited file. Also I would like to use export (if possible) and not >use the datastep with the file/infile statement, but if there is no >other way... > >Thanks, >Richard > >----------------------------------------------------------------------- --------- >De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd >voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de >inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. >----------------------------------------------------------------------- --------- >The information contained in this message may be confidential and is intended to be >exclusively for the addressee. Should you receive this message unintentionally, please do >not use the contents herein and notify the sender immediately by return e-mail. >----------------------------------------------------------------------- ---------

-------------------------------------------------------------------------------- De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. -------------------------------------------------------------------------------- The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. --------------------------------------------------------------------------------


Back to: Top of message | Previous page | Main SAS-L page