简体   繁体   中英

How can i write the results of SAS fullstimer option to a dataset?

We are evaluating the time taken for two set of codes in SAS. Is there a way we can write/ tabulate option fullstimer results in a SAS dataset, without copying the entire log file into a notepad?

I would go about it like this.

  1. Create separate SAS program files containing your code for each approach. Include options fullstimer at the top of both.
  2. Batch submit your programs and write the logs to permanent files using the -log command line option.
  3. Create a simple program that reads in both logs and compares the results.

The last step can be accomplished by using data steps with the INFILE statement and restricting the input records to those which are standard output from FULLSTIMER. Then you can compare the created datasets however you wish, eg via PROC COMPARE.

SAS has provided a log parsing macro that looks as though it should do the sort of thing that you want. It's available here:

http://support.sas.com/kb/34/301.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM