{smcl} {* 14dec2005}{...} {hi:help exec} {hline} {title:Title} {cmd:exec} {hline 2} Execute a do-file {title:Syntax} {p 8 17 2} {cmdab:exec} {help altpath:{it:alt-path}} [{cmd:,} {opt q:uiet} {opt p:ersist} {opt pass(parameters)}] {title:Description} {p 4 4 2}{cmd:exec} is just an alternative to {cmd:do}, {cmd:run}, and {cmd:include} that allows an {help altpath:{it:alt-path}} instead of a standard filename. Any parameters must be passed in the {opt pass()} option. {p 4 4 2}With no options, {cmd:exec} is equivalent to {cmd:do}. {title:Options} {p 4 8 2}{opt q:ueit} makes {cmd:exec} equivalent to {cmd:run}; that is, command lines are not echoed to the results window. {p 4 8 2}{opt p:ersist} makes {cmd:exec} equivalent to {cmd:include}; that is, local macros, and settings etc., are not reset when the file is done, but remain in effect for the calling session or file. {p 4 8 2}{opt pass(parameters)} must be used instead of including any parameters directly after the {help altpath:{it:alt-path}}; this is because spaces are allowed in the {help altpath:{it:alt-path}}. {title:Also see} {pstd}Online: help for {help do}, {help include}, {help altpath:alt-path} {pstd}Contact: {browse "mailto:elliott.lowy@va.gov":Elliott Lowy}