LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 19 Feb 2009 10:18:30 -0500
Reply-To:   Akshaya Nathilvar <akshaya.nathilvar@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Akshaya Nathilvar <akshaya.nathilvar@GMAIL.COM>
Subject:   Re: Proc Format from SAS Dataset
Comments:   To: Abc Unha <abcunha@yahoo.com>
In-Reply-To:   <200902191459.n1JBkbt5001973@malibu.cc.uga.edu>
Content-Type:   text/plain; charset=ISO-8859-1

I don't think so, to create formats from a dataset without manipulating it, unless it contains the required variables(Formatname,start,end[if you specify a range],label). If your dataset just contains the 2 variables you mentioned START and DESCRIPTION, then: Data fmt; retain fmtname '$school'; set have(rename=(description=label)); keep fmtname start label; Run;

Proc format cntlin=fmt library=<libref.catalog>; Run;

On Thu, Feb 19, 2009 at 9:59 AM, Abc Unha <abcunha@yahoo.com> wrote:

> I have a SAS dataset that contains Start value and end value. I would like > to create format using that SAS Dataset. I want create format only using > proc format (with out manipulating sas dataset) > > For e.g. > > Start Description > UGA University of Georgia > GTECH Georgia Tech > > I would like to read "Start" column and create a format to use Description. > > Is there anyway to directory read SAS dataset and creates format? >

-- AkshayA!


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