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 (October 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 22 Oct 2003 17:49:41 -0400
Reply-To:   Randy Herbison <RandyHerbison@WESTAT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Randy Herbison <RandyHerbison@WESTAT.COM>
Subject:   Re: remove double blank lines from data
Comments:   To: Jamil Ibrahim <jibrahim@ir.umsmed.edu>

-----Original Message----- From: Jamil Ibrahim [mailto:jibrahim@ir.umsmed.edu] Sent: Wednesday, October 22, 2003 5:34 PM To: Randy Herbison Cc: Jamil Ibrahim Subject: RE: remove double blank lines from data

HI Randy: thank you for this quick response. I think my message was not clear in the first email. I would like to remove all blank lines from file and only keep one blank line before each Line starting with the string "comment:_______"

thank you........

OK, try this:

data _null_; input @1 rec $char80.; if rec ne ' '; file "c:\testcnt.dat"; if upcase(substr(left(rec),1,8))='COMMENT:' then put; put rec $char80.; cards;

RandyHerbison@westat.com <mailto:RandyHerbison@westat.com>


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