Date: Tue, 29 Mar 2011 23:11:06 -0400
Reply-To: Arthur Tabachneck <art297@ROGERS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <art297@ROGERS.COM>
Subject: Re: Another PROC Question
Jack,
I'm not sure what you are asking. If it is how would proc transpose behave
given no records and no variables, I would think that would simply cause a
file to be created with no records and 1 variable. But that wasn't Joe's
original question.
Art
-------
On Tue, 29 Mar 2011 19:00:15 -0700, Jack Hamilton <jfh@STANFORDALUMNI.ORG>
wrote:
>What if the data set also com contains no variables?
>
>
>---
>Jack Hamilton
>95819
>
>-----Original Message-----
>From: Arthur Tabachneck <art297@ROGERS.COM>
>Sent: Tuesday, 29 March, 2011 03:48 pm
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: Re: [SAS-L] Another PROC Question
>
>Joe,
>
>Variable name takes up a record. If there were more than one variable,
>there would be even more records. E.g.:
>
>proc transpose
> data=sashelp.class (obs=0)
> out=test;
> var sex;
>run;
>
>Outputs one record.
>
>Art
>------
>On Tue, 29 Mar 2011 18:37:08 -0400, Joe Whitehurst
<joewhitehurst@GMAIL.COM>
>wrote:
>
>>Ya,
>>
>>Why such behavior? What's the reason for it?
>>
>>Joe
>>
>>On Tue, Mar 29, 2011 at 4:52 PM, Ya Huang <ya.huang@amylin.com> wrote:
>>
>>> proc transpose.
>>>
>>> On Tue, 29 Mar 2011 16:47:37 -0400, Joe Whitehurst
>>> <joewhitehurst@GMAIL.COM> wrote:
>>>
>>> >Which PROC outputs one observation if the input dataset has 0
>>> observations?
>>>
|