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 (January 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 29 Jan 2008 06:44:59 -0600
Reply-To:     "data _null_," <datanull@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "data _null_," <datanull@GMAIL.COM>
Subject:      Re: list all folders
Comments: To: jeli0703@hotmail.co.uk
In-Reply-To:  <d5fd9acd-a9dd-49eb-a40b-f7dba3f6a4a4@i29g2000prf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

On windows DIR /AD will restrict the DIR output to directories within the target folder. You can add /S to list sub folders. You can execute this and read the output via the PIPE access method. There are also functions that can be used to read object names from folders that will allow you to have a more general solution that is not OS dependent.

filename ft55f001 pipe 'dir /ad ".\"'; data _null_; infile ft55f001; input; list; run;

On Jan 29, 2008 4:28 AM, <jeli0703@hotmail.co.uk> wrote: > I am trying to write a piece of code that identifies all folders > available to me within a location. > > I have a piece that can look for filse but not the folder name, is > there anything out there that can do that? if so please post it up!! > > regards > J >


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