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 1999, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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