| Date: | Tue, 6 Dec 2005 12:59:48 -0800 |
| Reply-To: | shiling99@YAHOO.COM |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | shiling99@YAHOO.COM |
| Organization: | http://groups.google.com |
| Subject: | Re: do loops outside the data step |
|
| In-Reply-To: | <3vlnh3F16hmcgU1@individual.net> |
| Content-Type: | text/plain; charset="iso-8859-1" |
|---|
I think it will be easier to use wild cards in fileref if all files are
under same location(see other postion). Or use fileref with a list if
file names and locations are different.
2518 filename allf ('c:\temp\test1.txt', 'c:\temp\test2.txt');
2519 data _null_;
2520 infile allf;
2521 input ;
2522 put _infile_;
2523 run;
NOTE: The infile ALLF is:
File Name=c:\temp\test1.txt,
File List=('c:\temp\test1.txt' 'c:\temp\test2.txt'),
RECFM=V,LRECL=256
1,2
NOTE: The infile ALLF is:
File Name=c:\temp\test2.txt,
File List=('c:\temp\test1.txt' 'c:\temp\test2.txt'),
RECFM=V,LRECL=256
1,2
NOTE: 1 record was read from the infile ALLF.
The minimum record length was 3.
The maximum record length was 3.
NOTE: 1 record was read from the infile ALLF.
The minimum record length was 3.
The maximum record length was 3.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
|