Date: Fri, 15 Dec 2006 15:24:57 -0800
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: reorganizing dataset
Content-Type: text/plain; format=flowed
siddharth_jain@MERCK.COM wrote back:
>Business changed the required last moment and now the database has to look
>like the new one. I have SAS 8.2 so I cant use catx(). Pls guide.
>Thanks in advance,
I still think that you - as the programmer who has to do the hard
work here - ought to think in terms of a database design that is
*useful*, followed by data presentation that looks the way people
want to see it. After all, how often do you have several people
who want to see the sme data, but in several different display
structures? A good database design is the key to doing this in
an effective manner.
Now then. Without SAS 9, all you have to do is use the standard
SAS operator to concatenate strings: the double pipe || .
As in the code you have already seen, you will need to convert
numbers to strings first, and then concatenate them. If your
ID3 is a character variable, then use the code you have already seen,
without the PUT() functionality.
But I don't think you should do this in your primary database.
It will make further work on your variables ID1, ID2, ID3
that much harder.
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Share your latest news with your friends with the Windows Live Spaces