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 (May 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 25 May 2009 11:12:05 +0530
Reply-To:   mahesh kumar peesari <peesari.mahesh@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   mahesh kumar peesari <peesari.mahesh@GMAIL.COM>
Subject:   Re: need help and suggestions
Comments:   To: naga <nagabiochem@gmail.com>
In-Reply-To:   <0936999b-f78c-41e0-b7dd-bea2bbecf133@b7g2000pre.googlegroups.com>
Content-Type:   text/plain; charset=ISO-8859-1

HI Naga , Try this code...

data day; input jdate date9.; format jdate date9.; c=put(jdate, monname3.); d=put(jdate,weekdate9.); datalines; 12jan2009 13feb2009 14mar2009 15apr2009 ; proc print; run;

Regards

On Mon, May 25, 2009 at 9:45 AM, naga <nagabiochem@gmail.com> wrote:

> Hi all > I got my required output with procformat > i want to know any other short cut for this > or is there any standard format for this ? > data day; > input jdate date9.; > format jdate date9.; > datalines; > 12jan2009 > 13feb2009 > 14mar2009 > 15apr2009 > ; > data day; > set day; > mon=month(jdate); > week=weekday(jdate); > ; > proc print; > run; > Required output > jdate mon week > name name > 12jan2009 jan sunday > 13feb2009 feb tuesday > 14mar2009 mar saturday > 15apr2009 apr thurday >

-- Jack Of All Trades....But Master Of NONE....


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