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 (April 2009, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 13 Apr 2009 14:16:18 -0300
Reply-To:     priyanka singh <priyanka.priyankasingh@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         priyanka singh <priyanka.priyankasingh@GMAIL.COM>
Subject:      Re: (OT) Re: Importing multiple files from multiple folders
Comments: To: Chang Chung <chang_y_chung@hotmail.com>
In-Reply-To:  <200904131647.n3DGjW5X030557@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1

Hello Chang,

My problem is that the files names under all the folders are same. only the folder name is diff. So while importing via SAS macro..I can attach the name of folder with each file and hence get a unique file(name).

regards,

priyanka

On Mon, Apr 13, 2009 at 1:47 PM, Chang Chung <chang_y_chung@hotmail.com>wrote:

> On Sun, 12 Apr 2009 07:55:45 -0400, Priyanka Singh > <priyanka.priyankasingh@GMAIL.COM> wrote: > ... > >I am trying to import multiple from a folder. However, I have folders > inside that folder. > ... > hi, Priyanka, > > it seems that it is much simpler if you get all the filenames to be > imported > at once using some options to the "dir" command of the cmd.exe shell. > > suppose that you have f1.dat and f2.dat in the dirA and f3.dat in dirB, and > both dirA and dirB are under jan. The following dir command will get you > all > three: > > c:\jan> dir /a-d /s /b > (returns) > c:\jan\dirA\f1.dat > c:\jan\dirA\f2.dat > c:\jan\dirB\f3.dat > > /a-d excludes the directories; /s asks for files in the specified directory > and all its subdirectories; /b shows the list without the heading or the > summary information. hth. > > cheers, > chang >


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