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 (September 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 16 Sep 2011 11:09:44 +0000
Reply-To:     "Fehd, Ronald J. (CDC/OCOO/ITSO)" <rjf2@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Fehd, Ronald J. (CDC/OCOO/ITSO)" <rjf2@CDC.GOV>
Subject:      Re: Obtain a dataset with .sas files and file version numbers?
In-Reply-To:  <CAHj_gPcxFQepVR9vxEz2GY_MpxpExHWFc4MWRMKwKqzP1TtgOw@mail.gmail.com>
Content-Type: text/plain; charset="us-ascii"

Yes: http://www.sascommunity.org/wiki/Making_Lists

make list of files make list of folders

Ron Fehd list-making maven

> -----Original Message----- > From: Mary Rosenbloom [mailto:mary.rosenbloom.sas@gmail.com] > Sent: Thursday, September 15, 2011 9:22 PM > To: Fehd, Ronald J. (CDC/OCOO/ITSO) > Cc: SAS-L@listserv.uga.edu > Subject: Re: Obtain a dataset with .sas files and file version numbers? > > Hi all, > > On Tue, Sep 13, 2011 at 2:09 PM, Titaan Titaan <titaan08@gmail.com> > wrote: > > Hi Mary, > > Is this what you want? > > > > filename indata pipe 'dir C:\Users\Desktop\*sas /b'; > > > > data pgms; > > infile "C:\Users\Desktop\*sas" lrecl = 200 pad; > > length progline $200; > > input progline $char200.; > > progline = upcase(left(progline)); > > run; > > data pgms; > > set pgms; > > if index(progline,'SAS VERSION:') or index(progline,'AUTHORS > NAME:'); > > run; > > > > Regards, > > T > > > > This code works great. Is there any way to look into the folder and > any subfolders, and any subfolders of subfolders, etc to find any .sas > files, or will I need to specify the exact folder location each time? > > Thanks so much to all of you for your suggestions. I'll circle back > on this and let you know what I end up doing for a final solution. > > Cheers, > Mary R.


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