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
- Create a Stata .do file like sample.do shown in Making Your
Stata Program Ready for stata2htm.
- do the Stata .do file creating a .log file (e.g. do
sample to create sample.log).
- Start a dos window by clicking Start then Programs then Command
Prompt).
- 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
- Run stata2htm to convert the .log file to a web page, a .htm
file. Say your .log file was called sample.log, you woud
type
stata2htm sample