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 (February 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 12 Feb 1998 17:20:07 GMT
Reply-To:     Jay Weedon <jweedon@EARTHLINK.NET>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Jay Weedon <jweedon@EARTHLINK.NET>
Organization: http://extra.newsguy.com
Subject:      Re: OUTPUTwon't generate file
Content-Type: text/plain; charset=us-ascii

On Thu, 12 Feb 1998 11:38:21 -0500, "Michael S. Lundy" <MSLundy@internetMCI.com> wrote:

>Although my program runs w/o any error messages, I can't get SAS to >produce an actual output file from PROC UNIVARIATE. I'm obviously not a >"SAS Master," but I do have a rapidly approaching thesis deadline<g>. > >Here's just a few snippets of the code: > >FILENAME ONE 'F:\Raw-Data\Paper Print, Delivery & Receipt JDates >Times.txt'; >FILENAME TWO 'F:\Raw-Data\Email Lab Delivery & Receipt JDates >Times.DAT'; >FILENAME THREE 'F:\SAS Data Sets\Delivery-Receipt Delay MEDIANS.dat'; >/* First two are actual existing raw data files. Third is the file */ >/* I want to create w PROC UNIVARIATE */ >/* Other code steps here, omitted to save space in newsgroup */ >PROC Sort; > By PDempoID; > >PROC UNIVARIATE; > VAR PRDelay; > BY PDempoID; >OUTPUT OUT=THREE MEDIAN=PDelMed MODE=PDelMode; > >/* Runs, generates the expected stats in the output screen log */ >/* No 'F:\SAS Data Sets\Delivery-Receipt Delay MEDIANS.dat' created */ > >Running SAS for OS/2, Release 6.11, TS Level 0020

The proc is supposed to output a SAS *dataset*. My guess is that it IS outputting a dataset (verify by consulting the log): WORK.THREE. It won't write to an external file.

You could use a datastep and some PUT statements to later write the info to an external file if you wanted to, e.g.,

data _null_; set three; file three; put _all_; run;

Jay Weedon


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