Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-28-2007, 06:35 PM
toby dunn
Guest
 
Posts: n/a
Default Re: Transforming multiple records to one record

Untested but try:

Data Need ;
UpDate Sam1 ( Obs = 0 )
Sam1 ;
By ID ;
Run ;





Toby Dunn


Two wrongs are only the beginning.

Success always occurs in private and failure in full view.

Experience is something you don't get until just after you need it.





From: Nat <venkateshnt@GMAIL.COM>
Reply-To: Nat <venkateshnt@GMAIL.COM>
To: SAS-L@LISTSERV.UGA.EDU
Subject: Transforming multiple records to one record
Date: Tue, 28 Aug 2007 18:27:48 -0000

Hi everyone,

I have a dataset with multiple records for same ID like this:

data sam1;
input id a1 a2 a3 a4 a5 $ a6 $;
cards;
101 1 . . . *
101 . 2 . . *
101 . . 3 . *
101 . . . 4 *
102 1 . 3 . * .
102 . 2 . 4 .
;

I would like to have my output dataset to look like this: one record
per id;

id a1 a2 a3 a4 a5 a6
===================
101 1 2 3 4 *
102 1 2 3 4 *

I tried to use both array and proc transpose to get the output, but
the variables are different data types (Character & Numeric), it gives
me an error.

Please input your suggestions. Thanks for your help.

Regards!
Nat

__________________________________________________ _______________
A new home for Mom, no cleanup required. All starts here.
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Transforming multiple records to one record Jim Groeneveld Newsgroup comp.soft-sys.sas 0 08-29-2007 09:42 AM
Transforming multiple records to one record Nat Newsgroup comp.soft-sys.sas 2 08-28-2007 07:19 PM
Re: Transforming multiple records to one record Mary Newsgroup comp.soft-sys.sas 0 08-28-2007 07:11 PM
Re: Transforming multiple records to one record Jack Clark Newsgroup comp.soft-sys.sas 0 08-28-2007 06:47 PM
Re: Multiple record data problem and survival analysis Frank Schiffel Newsgroup comp.soft-sys.sas 1 05-11-2005 09:24 PM



All times are GMT. The time now is 05:09 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.