|Date: ||Thu, 2 Sep 2010 09:22:26 -0400|
|Reply-To: ||"Viel, Kevin" <kviel@SJHA.ORG>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||"Viel, Kevin" <kviel@SJHA.ORG>|
|Subject: ||Re: What is the Perl metacharacter for a page break character?|
|Content-Type: ||text/plain; charset="us-ascii"|
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Scott
> Sent: Tuesday, August 31, 2010 9:01 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: What is the Perl metacharacter for a page break character?
> Further to this, when I change the filevar to a file that does exist, I
> this error:
> /* close the input file, so we can open it again */
> filevar='temp1.lst'; infile dummy1 filevar=filevar;
> ERROR: File is in use, C:\Documents and Settings\sbass\temp1.lst
> I get the same error no matter what file I point to, absolute or relative
> For now I'm going to code this with two data steps, reverting back to
> a macro variable to carry the total page count to the next data step.
> If there is a way to do this in one data step, i.e. to close the first
> or to "rewind" the line pointer back to the beginning of the file (n=
> option?), please let me know.
This seems similar to the problem I was have two weeks ago (posted to SAS-L). Before I improved (corrected) the problem, with guidance/direction from SAS-L, I arrived at the kludge of using a second (dummy) FILEVAR and INFILE to "close" the program. Essentially, I was writing to a raw data file and then trying to use it in the same data step (because I did not know how to use STDIN for a perl program dynamically).
Without the second set, I got the same (I think) message.
Kevin Viel, PhD
Senior Research Statistician
Patient Safety & Quality
International College of Robotic Surgery
Saint Joseph's Translational Research Institute
Saint Joseph's Hospital
5671 Peachtree Dunwoody Road, NE, Suite 330
Atlanta, GA 30342
(678) 843-6076: Direct Phone
(678) 843-6153: Facsimile
(404) 558-1364: Mobile
This e-mail, including any attachments is the
property of Catholic Health East and is intended
for the sole use of the intended recipient(s).
It may contain information that is privileged and
confidential. Any unauthorized review, use,
disclosure, or distribution is prohibited. If you are
not the intended recipient, please delete this message, and
reply to the sender regarding the error in a separate email.