| Date: | Tue, 26 Jan 1999 17:03:38 -0500 |
| Reply-To: | TIM.LATENDRESS@LATENT62.CUSTOMS.SPRINT.COM |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
| From: | Tim Latendress <TIM.LATENDRESS@LATENT62.CUSTOMS.SPRINT.COM> |
| 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
|