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 (January 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 20 Jan 2004 11:42:26 -0800
Reply-To:     "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:      Re: Starting with SAS, again
Comments: To: Michal Lijowski <michal@CVU.WUSTL.EDU>

Michal -

Something like this, you may want to clean up the names...(untested)

filename output "CompetitionAverages.txt"; data _NULL_ ; set "AverageTest"; file output; if _n_=1 then put @002 'FrameNo' @012 'AngioAvMean' @022 'AngioAvStd' @032 'AngioAvMeanErr' @042 'BackAvMean' @052 'BackAvStd' @062 'BackAvMeanErr' @072 'MuscAvMean' @082 'MuscAvStd' @092 'MuscAvMeanErr' @102 'RatioAngioMMean' @112 'RatioAngioBStd' @122 'RatioAngioBMeanErr' @132 'RatioAngioBCV' @142 'RatioAngioMMean' @152 'RatioAngioMStd' @162 'RatioAngioBMeanErr' @172 'RatioAngioMCV' ;

put @002 FrameNo 3. @012 AngioAvMean 8.2 @022 AngioAvStd 8.2 @032 AngioAvMeanErr 8.2 @042 BackAvMean 8.2 @052 BackAvStd 8.2 @062 BackAvMeanErr 8.2 @072 MuscAvMean 8.2 @082 MuscAvStd 8.2 @092 MuscAvMeanErr 8.2 @102 RatioAngioMMean 8.2 @112 RatioAngioBStd 8.2 @122 RatioAngioBMeanErr 8.2 @132 RatioAngioBCV 8.2 @142 RatioAngioMMean 8.2 @152 RatioAngioMStd 8.2 @162 RatioAngioBMeanErr 8.2 @172 RatioAngioMCV 8.2; run; hth

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: Michal Lijowski [mailto:michal@CVU.WUSTL.EDU] Sent: Tuesday, January 20, 2004 11:23 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Starting with SAS, again

Hello,

I would like to save results from PROC MEANS into ASCII file and I would like to have a header above each column. How would I do it? Below it part of SAS code.

Thanks,

Michal

filename output "CompetitionAverages.txt"; data _NULL_ ; set "AverageTest"; file output; put @2 FrameNo 3. @12 AngioAvMean 8.2 @22 AngioAvStd 8.2 @32 AngioAvMeanErr 8.2 @42 BackAvMean 8.2 @52 BackAvStd 8.2 @62 BackAvMeanErr 8.2 @72 MuscAvMean 8.2 @82 MuscAvStd 8.2 @92 MuscAvMeanErr 8.2 @102 RatioAngioMMean 8.2 @112 RatioAngioBStd 8.2 @122 RatioAngioBMeanErr 8.2 @132 RatioAngioBCV 8.2 @142 RatioAngioMMean 8.2 @152 RatioAngioMStd 8.2 @162 RatioAngioBMeanErr 8.2 @172 RatioAngioMCV 8.2; run;


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