Does indentation do what you want?  Here is some unindented nonsense code:

do i=1,2;
a=1;
b=2;
do j=1,23;
abcd=3;
def=4;
end;
end;
and the same thing after highlighting it and M-x indent-region

do i=1,2;
    a=1;
    b=2;
    do j=1,23;
        abcd=3;
        def=4;
        end;
    end;

Rich

On Fri, Dec 30, 2011 at 2:53 PM, O'Byrne, Megan M. <OByrne.Megan@mayo.edu>wrote:

> Hi. I'm new to the list. I was wondering if there was anything in the
> works to match up do; and end; statements in SAS code? Sometimes I find
> it really difficult to figure out where they got mismatched. I love how
> it is implemented for R code with a note at the bottom giving you the if
> statement after you close it off. Maybe something similar could be done
> here?
>
> Thanks!
> Megan
>
> Megan O'Byrne | SPA | Biomedical Statistics & Informatics
> Mayo Clinic | 200 First Street SW | Rochester, MN 55905 |
> www.mayoclinic.org
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

