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 (December 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 12 Dec 2007 18:23:19 -0500
Reply-To:     SUBSCRIBE SAS-L Chandra Gadde <ddraj2015@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         SUBSCRIBE SAS-L Chandra Gadde <ddraj2015@GMAIL.COM>
Subject:      SORTING SAS DATASETS IN A UNIX DATA DIRECTORY

Hi All,

I have several sas datasets in one unix data directory. Some of them follow this pattern.

job_claim_10dec07.sas7bdat job_claim_11jan07.sas7bdat job_claim_22jun05.sas7bdat job_claim_11nov07.sas7bdat job_claim_19mar06.sas7bdat

and so forth.

I need to sort these data sets, in the ascending order of DDMONYY extension. In other words, after sorting I should see the sas datasets in the following way and pick up the latest sas program. My goal is to identify the latest SAS dataset being created. I need to identify the latest SAS dataset and use that in my new sas PROGRAM I am creating. Any help would be greatly appreciated.

job_claim_22jun05.sas7bdat job_claim_19mar06.sas7bdat job_claim_11jan07.sas7bdat job_claim_11nov07.sas7bdat job_claim_10dec07.sas7bdat


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