{smcl} {* 25oct2005}{...} {cmd:help errel} {hline} {title:Title} {p 5 18 2}{hi: errel} {hline 2} Shortcut error generation {title:Syntax} {p 8 15 2} {cmd:errel} {it:error-message} {title:Description} {p 4 4 2}{cmd:errel} is simply a shortcut for generating errors in programs and do files. Instead of typing: {p 8 12 2}{cmd:if} {it:SomethingBad} {cmd:{c -(}}{break} {cmd:display as error "}Something bad has happened{cmd:"}{break} {cmd:error 77}{break} {cmd:{c )-}} {p 4 4 2}One can simply type: {p 8 12 2}{cmd:if} {it:SomethingBad} {cmd:errel} Something bad has happened {p 4 4 2}No quotes are required for {it:error-message}.{break} The error code {bf:77} is one that is not used by any built-in Stata commands. {title:Also see} {pstd}Online: help for {helpb error}, {helpb display} {pstd}Contact: {browse "mailto:elliott.lowy@va.gov":Elliott Lowy}