macro nomprint mprint %

Introduction

The title of this page is actual SAS code. Chances are you have not seen anything like it before. The syntax in the title is correct. There is no ending semicolon. There is no percent sign in front of the word "macro". And what does this code do, you might wonder? I will tell you. It turns on the "mprint" option even where the author has gone to great lengths to force the "nomprint" option to be in effect. It works for almost all sas macros and sas code ever written. It simply substitutes the word "nomprint" it finds in sas code with what follows it before the percent sign, which is the word "mprint". This way "options nomprint;" gets changed to "options mprint;". It is an old-style macro or, more correctly, a "macro statement", that still works with modern-day sas code. These old-style macros are a security weakness in sas software and can be exploited for hacking purposes. You can find out more about this and how to prevent it by clicking on the link below.

Hacking using sas
 
 


 
 

Go back to the home page.

E-mail the macro and web site author.