Usage Note 22955: Can I write a table that is displayed by SAS/INSIGHT to a SAS data set using only programming statements?
Yes, you can write a table that is displayed by SAS/INSIGHT to a SAS data set using only programming statements. You first need to determine the name of the table that you want to write to a data set. To do this, specify the TABLES; and ODS TRACE ON / LISTING; statements with your other PROC INSIGHT statements. Here is an example:
ods trace on / listing;
proc insight;
open mydata / nodisplay;
fit y = x;
tables;
quit;
ods trace off;
The ODS TRACE ON / LISTING; statement will display the name of each table immediately before the table in the listing window. Now that you know the name of the table that you want to write to a data set, you can use ODS statements to close the listing destination and create a data set from the table. For example, if you want to write the Parameter_Estimates table to a data set named PARMS, use the following statements:
ods listing close;
proc insight;
open mydata / nodisplay;
fit y = x;
tables;
ods output parameter_estimates=parms;
quit;
ods listing;
Operating System and Release Information
| SAS System | SAS/INSIGHT | All | n/a | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | Analytics ==> Transformations Analytics ==> Regression Analytics ==> Spatial Analysis Analytics ==> Nonparametric Analysis Analytics ==> Psychometrics Analytics ==> Discriminant Analysis Analytics ==> Distribution Analysis Analytics ==> Exploratory Data Analysis Analytics ==> Multivariate Analysis Analytics ==> Categorical Data Analysis Analytics ==> Descriptive Statistics Analytics ==> Analysis of Variance
|
| Date Modified: | 2005-11-14 11:16:14 |
| Date Created: | 2002-12-16 10:56:43 |