Hello all, I'm looking for a way to conditionally move to a specific block of code, or end the SAS program all together. I've done all sorts of digging up on the internet, and everyone seems to be pointing the use of a macro wrapper. I've encapsulated my code in a macro wrapper, but it appears SAS EG stops 'recognizing' my code once this happens (as in, everything is greyed out, it's almost like it's been commented out. nothing shows up in the log except for the text itself). From my research, I'm starting to think this may only be for SAS 9.3. At the moment, I am stuck with SAS E Guide 5.1. Ultimately, I want to do this: %IF DATE() = "&dateVar"d %THEN %goto exit; (with exit being a label for the last line of the program. I'd also like to consider going to a different part of the code that emails a warning out that the dates in the IF statement did not match.) I hope this first post was descriptive enough. What do the SAS wizards here think?
... View more