Date: Wed, 20 Jul 2011 03:11:45 -0400
Reply-To: Jim Groeneveld <jim.1stat@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jim Groeneveld <jim.1stat@YAHOO.COM>
Subject: Re: need dynamic code
Hi SubSAS-L,
Show us some example code, that we can run, from which it appears that you
only get 1 and 2 for year and month.
Regards - Jim.
--
Jim Groeneveld, Netherlands
Statistician, SAS consultant
http://jim.groeneveld.eu.tf
On Wed, 20 Jul 2011 00:40:20 -0400, SUBSCRIBE SAS-L sagar
<sagar.s@SATVIKINC.COM> wrote:
>Thanks for the reply. still the problem is not solve/ For year & month value
>I am getting The only number value 1,2 but I want to print actual value like
>2008,2009
>
>sample data
>
>data some;
> input year month str $20.;
>datalines;
>2010 02 2010_02_s1
>2010 02 2010_02_s2
>2010 03 2010_03_s1
>2010 03 2010_03_s2
>2010 03 2010_03_s3
>2011 01 2011_02_s1
>;
>run;
>
>Also I just want to know if in varlist has only one string like "year"
>then some if else condition will be sufficent.In think this code is for n>1
|