Date: Thu, 23 Aug 2007 08:45:19 -0400
Reply-To: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject: Re: Processing Multiple data files
On Thu, 23 Aug 2007 03:32:44 -0400, SUBSCRIBE SAS-L Anonymous
> I have multiple files (about 500) in txt format. They are named file1,
>file2 and so on. I am using the following INFILE statement to read the
>Infile 'C:\Documents and Settings\AAA\Desktop\file1.txt' DLM = ','
>Lrecl = 32000 DSD Truncover;
>FInally I want to save the output as Output1, Output2...etc in Mylibrary
Why? Stacking all of the data in one SAS data set will likely make both this
task and subsequent tasks easier.
>So the last line of the code is:
>proc sort data = example out = mylibrary.output1 ; by VarA VarB VarC ;
>Can I process the data using a BAT file where I need a wildcard for the
>file1.txt statement and also for the statement out = mylibrary.output1 .
>Or will a Macro be be preferred?
>Thanx for the help in advance