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 1997, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 31 Jan 1997 17:21:59 -0500
Reply-To:   Bruce Hopkins <Bruce_Hopkins%BAYMAIL@NOTES.PROVIDIAN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Bruce Hopkins <Bruce_Hopkins%BAYMAIL@NOTES.PROVIDIAN.COM>
Subject:   Re: getting date of file update/creation
Content-Type:   Text/Plain

Here is a quick & dirty outline of how to get the creation date for an external file using SAS on a UNIX system.

1) %let fname=your_file_name;

2) Assign: filename ls pipe "ls -lt &fname";

3) Write a data step with an input statement to read the file system information about your file. You will need to create a valid SAS date from the raw input;

david @ DAISY.MOFFITT.USF.EDU (David Cuthbertson) 01/31/97 10:54 AM

To: SAS-L @ UGA.CC.UGA.EDU (Multiple recipients of list SAS-L) @ smtp_test cc: (bcc: Bruce Hopkins/BAY/PVN) Subject: Re: getting date of file update/creation

>>>I'm trying to find a SAS function or option for the filename or infile >>>staments that would allow me to get the date that a particular file was >>>updated or created. I'm using SAS 6.09 TS042 on UNIX. I've checked the >>>Compainon for UNIX Environments: Language and the Compainon for UNIX >>>Environments & Derivatives. >>> >>>Anybody know of any options that will pick up the file date like the the >>>filename= option picks up the file's name in the infile statement? >>> >>>Thanks >>>David ---------------------------------------------------------------------- David Cuthbertson, M.S. desk: (813) 632-1326 Biostatistician/ fax: (813) 632-1334 Associate in Pediatrics Moffitt Cancer Center at the University of South Florida email: 12902 Magnolia Drive Tampa, FL 33612 ----------------------------------------------------------------------

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