Date: Wed, 27 Jan 1999 10:51:12 -0600
Reply-To: Gullion Christina <Christina.Gullion@COLUMBIA.NET>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Gullion Christina <Christina.Gullion@COLUMBIA.NET>
Subject: Re: Find the File Size
Content-Type: text/plain
Have you tried experimenting with FOPTNAME and related functions (FINFO,
FOPTNUM). These are new in 6.11 or 6.12 (?) and are documented in the
online documentation
HTH,
Chris
Christina M. Gullion, Ph.D.
Biostatistician and Supervisor, Clinical Research
Department of Clinical Research
Medical City Dallas Hospital
972/566-4718
fax 972/566-4715
> -----Original Message-----
> From: Tim Latendress [SMTP:TIM.LATENDRESS@LATENT62.CUSTOMS.SPRINT.COM]
> Sent: Tuesday, January 26, 1999 4:04 PM
> To: SAS-L@UGA.CC.UGA.EDU
> Subject: Find the File Size
>
> (SAS 6.12 TS045/Windows NT) Does anyone know of an easy way to obtain
> the size of an external file from within a data step? The best option
> I've found so far is to pipe a dir command and parse out the file
> size. However, stepping out to DOS should not be necessary for such a
> common piece of information. Using the file functions that I can
> find,
> only the LRECL, FILENAME and RECFM are available. In VB, I can simply
> use nFileSize = FileLen(sCurrentDoc) to obtain the file size.
>
> Any recommendations?
>
> TIA,
>
> Tim Latendress
> latendres@treas.customs.gov
|