Stata 11 help for viewsource

help viewsource -------------------------------------------------------------------------------

Title

[P] viewsource -- View source code

Syntax

viewsource filename

Description

viewsource searches for filename along the adopath and displays the file in the Viewer. No default file extension is provided; if you want to see, for example, kappa.ado, type viewsource kappa.ado.

Remarks

Say that you wish to look at the source for ml. You know that ml is an ado-file, and therefore the filename is ml.ado. You type

. viewsource ml.ado

program is not implemented as an ado-file:

. viewsource program.ado file "program.ado" not found r(601);

By the way, you can find out where the file is stored by typing

. findfile ml.ado C:\Program Files\Stata10\ado\updates/m/ml.ado

See [P] findfile.

viewsource is not limited to displaying ado-files. If you wish to see, for example, panelsetup.mata, type

. viewsource panelsetup.mata

Also see

Manual: [P] viewsource

Help: [P] copysource, [P] findfile, [R] which, [R] view


© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index