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 (February 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 12 Feb 2006 14:06:34 -0500
Reply-To:   Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>
Subject:   Re: How to build Dynamic Variable names and values
Comments:   To: SUBSCRIBE SAS-L Chandra Gadde <ddraj2015@GMAIL.COM>

Chandra

accept the inevitable!

take year out of your column names

analyse by <current by and class variables> year

Use by statements (even with a set statement)

After your proc means use proc transpose, if you really need columns of year

When handling data with year variable in consecutive rows, use first. and last. tests for by variables.

I can think of no business model where year is so static that it can be expected to be complete in columns, except on final output .... which will change by next year !

The number and variety of ways you (can) store year in a column name is not limited. Probably there are no "complete" solutions for your model design.

Good Luck in redesigning what you need.

Peter Crawford


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