StopProgram.sas

/****************************************************************************/
/*  Program Name  : StopProgram                                             */
/*  Purpose       : Terminate program execution for development purposes.   */
/*                                                                          */
/*--------------------------------------------------------------------------*/
/*  Author        : Matt Trzcinski                                          */
/*  Last Update   : 2017/05/06                                              */
/*                                                                          */
/*--------------------------------------------------------------------------*/
/*  Input(s)      : None                                                    */
/*  Output(s)     : None                                                    */
/*  Usage         : There is a bug in the Enhanced Editor which sometimes   */
/*                  causes code in a different window to be executed. This  */
/*                  happens regardless of whether the current window is     */
/*                  activated or whether code is selected. This macro is    */
/*                  used to guard against that.                             */
/*                                                                          */
/*--------------------------------------------------------------------------*/
/*  Example(s)    : %StopProgram();                                         */
/*                                                                          */
/*--------------------------------------------------------------------------*/
/*  Note          :                                                         */
/*                                                                          */
/*  Developer     :                                                         */
/*                                                                          */
/****************************************************************************/

%macro StopProgram();
  %put ERROR: [DEV] Program terminated for testing purposes.;
  %abort cancel;
%mend;

Powered by peut-publier

©2020 Matt Trzcinski