| Date: | Fri, 20 Aug 2010 08:18:17 -0700 |
| Reply-To: | mlhoward@avalon.net |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Mary <mlhoward@AVALON.NET> |
| Subject: | Re: I just want to write a few lines to STDOUT |
|
| Content-Type: | text/plain; charset="UTF-8" |
|---|
Or just create a data set with your lines and then use proc report; proc report can set the variable label to blank so you just get your lines. Something like this works:
data myoutput;
informat line $128.;
line='this is my first line'; output;
line='this is my second line'; output;
run;
proc report data=myoutput nowindows;
column line;
define line/display " ";
run;
-Mary
--- matt@TPLUS1.COM wrote:
From: "W. Matthew Wilson" <matt@TPLUS1.COM>
To: SAS-L@LISTSERV.UGA.EDU
Subject: I just want to write a few lines to STDOUT
Date: Fri, 20 Aug 2010 10:16:19 -0400
Hi --
I run most of my SAS programs from the command-line, sort of like this:
> sas myprog.sas
My "sas" program is really a script that runs my sas program and then
checks the return code and tells me what it returned.
Anyhow, I want to write a few lines to standard output from myprog.sas
but I don't know how. I know how to write to a file:
filename outfile "out.txt";
data _null_;
file outfile;
put "blah blah blah";
run;
I'm baffled how to write to STDOUT (aka file descriptor #2).
Any pointers? I'm working on windows right now.
Matt
--
W. Matthew Wilson
matt@tplus1.com
http://tplus1.com
|