Date: Tue, 29 Apr 2008 06:41:00 -0700
Reply-To: Don <dmorgan@ROCKETMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Don <dmorgan@ROCKETMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Reading .TIF file names into SAS datasets
Content-Type: text/plain; charset=ISO-8859-1
I think you were on a correct track. I have little experience with the
Pipe command...
When I need a directory listing I use a similar command as you have,
but I go out & use the command prompt, run the command from there &
just direct the output of the to a flat file... dir .... /b/s >
file_list_for_datastep.txt
Then reference/read the flat file when you do your data step...
----- Original Message ----
From: Richie N.M. <sas.kenya@gmail.com>
To: Don <dmorgan@rocketmail.com>
Sent: Monday, April 28, 2008 10:00:41 AM
Subject: Re: Reading .TIF file names into SAS datasets
I have images of study forms saved as tif files with the studyid as
the file name say (0-0001-1.tif, 0-0002-2, etc). I want to compare the
database with the images and see if I am missing data (i.e. I have a
form image without the record in the database) and need to read the
image names into a dataset; how do I go about that.
Thanks,
Rich.
On Apr 28, 6:29 am, sas.ke...@GMAIL.COM ("Richie N.M.") wrote:
> Hi All,
> I have .tif files saved in the server and I need to read the names of
> these files into a SAS dataset. The program I wrote (with the help of
> course) is:
>
> filename dirtext pipe "dir /A-D /b \\fsp-kec1\Projects\HIV-R\SCANNED
> IMAGES\KiBS\01. Screening\01A - ANC Screening Forms\*.tif" lrecl = *200*;
> *
>
> data* in;
>
> infile dirtext length = len;
>
> input file $varying200. len;
> *
>
> run*;
>
> but I get a message in the Log:
>
> *Stderr output:*
>
> *The system cannot find the path specified.*
>
> What am I missing? Is the code wrong?
>
> Thanks,
>
> Richie.
|