In SAS, how to add comments to my .LST output file. How to add a comment saying "This is the result for tbl_TestMacro:" right before the proc printout is done? So my output file will read:
This is the output for tbl_TestMacro: Obs field1 field2 1 6 8 2 6 9 3 7 0 4 7 1
Instead simply:
Obs field1 field2 1 6 8 2 6 9 3 7 0 4 7 1
Thanks Dan
Or you could do
data _null_; file print; put "this is the output"; file log; run;
See http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000171874.htm for more information on changing the "put." Destination.
You may have a better chance of stackoverflow for issues with a numerical computational language (such as SAS and R).
. TITLE PUT :
TITLE
PUT
title "This is the output for tbl_TestMacro:";
put This is the output for tbl_TestMacro:;
, "put" , .
, .
SAS . , , SASweave StatWeave, Russ Lenth. , . R Sweave.
, , , :
data mytext; text = "This is the output for tbl_TestMacro"; run; proc print noobs data = mytext split='*'; var text; label text = '*'; run;
( , , .)
Source: https://habr.com/ru/post/1738363/More articles:Posting MVC-actionlink List of complex type - asp.net-mvcRegexValidator for checking emails, creating a standard attribute - c #Using COM to open Word - phpWhy is std namespace required here? - c ++OMA DM functions supported in ANDROID API? - androidTuning WCF performance with netTcpBinding - performanceHow to create transparent TrueColor PNG with Perl & GD? - perlDoes HttpCacheability.Public set page caching on the server? - c #Conflict Binding VC6 - visual-c ++Algorithm for aggregating values ββfrom nodes of child trees - javaAll Articles