UCLA Stat Computing Portal Web
Tools
ATS Stat
Computing
 

Running sas2htm

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

To Run sas2htm

  1. Start a dos window by clicking Start then Programs then Command Prompt).
  2. Change directories to the place where you .sas file is located.  Say your file is located in the c:\myfiles directory, you would type
    c:
    cd c:\myfiles
  3. Run sas2htm to convert the .sas file to a web page, a .htm fileSay your program was called myprog.sas, you woud type
     sas2htm myprog

Debugging Problems

In a sense, the comments that you put into your program (e.g. *beginc; *endc; *beginp; *endp; *output; ) have a kind of a syntax, and if there are errors in that syntax, then your output (the web page) will not look as you expect it.  Here are some tips on debugging problems in using sas2htm.