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 (August 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 <randistan69@HOTMAIL.COM> wrote:

>Dear All: > 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 >data: > >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 ; >run; > >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 > Randy

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