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 (July 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 17 Jul 1998 10:19:30 -0400
Reply-To:   "abdu.elnagheeb(a)nationsbank.com" <abdu.elnagheeb@NATIONSBANK.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "abdu.elnagheeb(a)nationsbank.com" <abdu.elnagheeb@NATIONSBANK.COM>
Subject:   Re: proc TRANSPOSE (THanks)

Thanks to ALL who responded to my question. The answer (as you stated) is: To transpose a character variable you MUST use a VAR statement with PROC TRANSPOSE. Thanks again and have a great weekend.

abdu

> -----MY Original Message----- > From: abdu.elnagheeb(a)nationsbank.com > [SMTP:abdu.elnagheeb@NATIONSBANK.COM] > Sent: Thursday, July 16, 1998 5:24 PM > To: SAS-L@UGA.CC.UGA.EDU > Subject: proc TRANSPOSE > > Hello all, > Is PROC TRANSPOSE limited only to numeric variables? I ran the > program below and got the following SAS log > > >>>>>part of sas log<<<<<<< > PROC TRANSPOSE DATA = JUNKO2 OUT=JUNKO2 ;RUN; > > NOTE: No variables to transpose. > NOTE: The data set WORK.JUNKO2 has 0 observations and 14 > variables. > NOTE: The PROCEDURE TRANSPOSE used 0.16 seconds. > >>>>>>>>end <<<<<<<<<<<<<< > > Why can't I get the transpose of the variable NAME. Shouldn't I > expect something like: > > _type_ col1 col2 col3 col4 .......etc > Name annfee clsvar cluster insfee_k .....etc > > Please, help. Thanks. > > abdu > > ********program********* > DATA JUNKO ; > INPUT NAME $ ; > LENGTH NAME $8. ; > CARDS ; > ANNFEE > CLSVAR > CLUSTER > INSFEE_K > INTCHG > INTCHG_K > LTOLFE > LTOLFE_K > ; > RUN; > > > DATA JUNKO2;SET JUNKO; RUN; > > PROC PRINT ;RUN; > > PROC TRANSPOSE DATA = JUNKO2 OUT=JUNKO2 ;RUN; > > PROC PRINT DATA=JUNKO2; RUN;


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