Adding Comments
    

You can annotate your macro program by using the comment symbol # and the NOTE command.

To add comments that do not display in the Session window

Place the symbol # anywhere on a line to tell Minitab to ignore the rest of the line. Text after # is not displayed in the Session window when the macro is executed (even when you use the ECHO).

To add comments that display in the Session window

Put the NOTE command at the beginning of a line. All text on that line will be ignored by the macro processor. However, text on a NOTE line (except the first five spaces-the word NOTE and a space) does display in the Session window when the macro is executed. To display a blank line, type a line containing only the word NOTE.

Example of using NOTE in a macro

Macro Code

Results in Session window

NOTE Here come the data
NOTE
PRINT C1-C3 

Here come the data

 

Data Display

 Row  Yield  Chem1  Chem2

   1  11.28   87   1.83

   2   8.44   61  25.42

   3  13.19   59  28.64

...

Tip: adding readability by adding blank lines