Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAS: add comment to lst ouput file

Tags:

sas

In SAS, How do I add comments to my .LST output file. Like adding a comment saying "This is the output for tbl_TestMacro:" right before doing a proc print? So that 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 of just:

Obs    field1    field2

 1        6         8  
 2        6         9  
 3        7         0  
 4        7         1  

Thanks, Dan

like image 233
Dan Avatar asked Oct 18 '25 20:10

Dan


1 Answers

You may actually have more luck on stackoverflow for numerical computing language questions (such as SAS and R).

But I'll try my hand at it anyway. Both TITLE and PUT would work for your purposes:

title "This is the output for tbl_TestMacro:";

or

put This is the output for tbl_TestMacro:;
like image 93
Tyler Avatar answered Oct 22 '25 06:10

Tyler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!