November 8,2006

神奇ODS

SAS中的Output窗格中的表內容,轉成data set來使用的方法。

Instead of the copy-and-paste function in Windows, SAS provides a system for outputting the tables shown in the Output frame. All the results shown in Output frame can be output as datasets, whatever the SAS PROC you use. The procedures were shown below.


First, turn on the ODS TRACE. Put the SAS procedure after the ODS TRACE statements.

The hidden name of every output table will be shown in the Output frame.

Find the name of the table(s) you want to output as dataset. And then use ODS OUTPUT statement. For example, here, I choose the table “Binomial Proportion” and output it as a dataset named AA.

This is the content of dataset AA (or data of Binomial Proportion Table). This data can then be used for many purposes, such as editing the contents, merging with other datasets, etc.


Posted by trust1021 at 樂多Roodo! │12:04 │回應(0)引用(0)工作經過的
樂多分類:學術/學習 工具:編輯本文
Ads by Roodo! 

引用URL

http://cgi.blog.roodo.com/trackback/2438403