Add "Do Not Run" to the "Based on" list in the dialog "Add (Edit) a Condition". Let this add a "Do Not Run" to the list under "If this condition is true:". If this is the only condition then the program node does not run. Let this be equivalent to a condition based on a macro variable "If this condition is true: 1 equal to 0" or:
%if 0 %then %do;
The "Conditional Processing" dialog is accessed when adding a condition to a node in a EG program node or other object. When using the Add (or Edit) button a dialog titled "Add (Edit) a Condition" appears. This dialog has a list named "Based on".
I rarely use Conditional Processing... but when I do, I use it to exclude a node, or branch, from being run. This change helps communicate intent "not to run" a particular object rather than using another means that is intended to communicate that there is a variable condition that might change dependent on some change of a value. Currently I use this hack, to do this: I add a condition to the node, make it based on a macro variable and fill out the as show below. It appears in the "Conditional Processing" as "1 equal to 0":
macro variable: 1
operator: equals
value: 0
See the attachment Do_Not_Run_Program(3).egp.zip (28 KB) which is a an EGP file (change the extension back to EGP).
Its noted that this isn't how Conditional Processing was meant to be, but I find use in it. I hope you consider it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.