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 (July 2002, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 30 Jul 2002 15:53:03 -0400
Reply-To:   "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Subject:   Re: Empty Files
Comments:   cc: StatSection <StatDept@YAHOO.COM>
Content-Type:   text/plain

> From: StatSection [mailto:StatDept@YAHOO.COM] > I am reading in multiple files (with more than one line each) with an > input statement. If a file is empty, currently it doesn't get > included. However, I want an empty file to create empty records. Any > ideas?

A big problem, which I solved in another application by using the complete file-list to generate a set of empty (datasets,files) then executing the file-list with data present.

... another one of my (in)famous talking to myself statements ...

given the list of 50 states create empty data set for each of 50 states

given the data which contains, sometimes, less than 50 states output what's there, which writes over the empty data set and leaves for a state w/no data -- your 'empty file' -- an empty data set

Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov

By using your intelligence you can sometimes make your problems twice as complicated. -- Ashleigh Brilliant

remember perspective: the error is not always where it seems to occur! -- RJF2 nor the data


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