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 (May 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 11 May 2010 07:03:05 -0500
Reply-To:     "Data _null_;" <iebupdte@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Data _null_;" <iebupdte@GMAIL.COM>
Subject:      Re: dataset already open for output
Comments: To: "Simon, Lorna" <Lorna.Simon@umassmed.edu>
In-Reply-To:  <773963205B4CAB4689DE565DB49C530C43E34D46A0@UMMSMAIL07.ad.umassmed.edu>
Content-Type: text/plain; charset=ISO-8859-1

It means you have used the same name more than one time in the data step...

NS11A and NS11B perhaps others.

data ns11a ns11b ns26a ns26b ns5a ns5b ns6a ns6b ns11a ns11b ns36a ns36b ns45a ns64a ns64b ns77a ns77b ns81a ns81b ns98a ns98b;

On 5/11/10, Simon, Lorna <Lorna.Simon@umassmed.edu> wrote: > This is a really dumb question, but what does the error message "data set is already open for output" mean? I am using the following code: > > data ns11a ns11b ns26a ns26b ns5a ns5b ns6a ns6b ns11a ns11b ns36a ns36b ns45a > ns64a ns64b ns77a ns77b ns81a ns81b ns98a ns98b; > set non_speakers(keep=siteid panelid participantid); > > if siteid=11 and panelid="A" then do i=1 to 6; > output ns11a; > end; > > if siteid=11 and panelid="B" then do i=1 to 8; > output ns11b; > end; > > if siteid=26 and panelid="A" then do i=1 to 10; > output ns26a; > end; > > if siteid=26 and panelid="B" then do i=1 to 5; > output ns26b; > end; > run; > > Note: the code is not complete, I am just testing it with the 1st couple datasets to make sure it works before I write more code. >


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