Running stata2htm

These notes show how to use and run the tool stata2htm that ATS has developed to make it easy to convert a SAS program into a web page.  We assume you have downloaded stata2htm.

To Run stata2htm

  1. Create a Stata .do file like sample.do shown in Making Your Stata Program Ready for stata2htm.
  2. do the Stata .do file creating a .log file (e.g. do sample to create sample.log).
  3. Start a dos window by clicking Start then Programs then Command Prompt).
  4. Use the cd command to change directories to the place where your Stata .log file is located.  Say your file is located in the c:\myfiles directory, you would type
    c:
    cd c:\myfiles
  5. Run stata2htm to convert the .log file to a web page, a .htm fileSay your .log file was called sample.log, you woud type
     stata2htm sample