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
Content-Type: text/plain; charset=ISO-8859-1
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).
On Mon, Apr 13, 2009 at 1:47 PM, Chang Chung <email@example.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
> 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
> c:\jan> dir /a-d /s /b
> /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.