| UCLA Stat Computing Portal |
Web Tools |
ATS Stat Computing |
These notes show how to make your SAS program ready for running through 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.
It is probably easiest to show how to prepare your program by using an example.
Sample Program #1
*T Page Title ; *H Heading for First Section ; *beginc; * This module will examine the use of "PROC SORT" and use of the "BY" statement ; * SAS Procedures ; * Consider the sample program below. ; *endc; *beginp; DATA auto ; INPUT make $ mpg rep78 weight foreign ; CARDS; AMC 22 3 2930 0 AMC 17 3 3350 0 AMC 22 . 2640 0 ; RUN; PROC PRINT DATA=auto; RUN; *endp; *beginc; * The output from the program is shown below. ; *endc; *output; *H Heading for Second Section ; *beginc; * Below we want to show how to make a graph; *endc; filename outfile 'rwgsas3a.gif'; goptions gsfmode=replace gsfname=outfile device=gif373; *beginp; proc gplot data=auto; plot mpg*weight; run; *endp; *beginc; * Here is the graph below.<p> ; * <img src='rwgsas3a.gif'> ; *endc; *output;
Web page created from sample progrm
Running sas2htm sample1.sas results in the web page sample1.htm .
Explanation of sample program