One source of errors can be Minitab commands that work differently in macros than they do in interactive Minitab.
- If your macro includes data after these commands, you must use the command END on the next line following the data.
- If you use the FORMAT subcommand with these commands, the END command must be at the beginning of the next line following the data. If you indent the END command at all, Minitab will not recognize it and you will get an error message.
- If you use READ, SET, or INSERT to input data from a file, you must specify the file name on the FILE subcommand. You cannot specify the file name on the main command as you can in interactive Minitab.
- In local macros: If you see the error "Missing END for READ, SET, or INSERT," it may be because you have named a local variable with the same name as a Minitab command, and entered it after SET or INSERT.
LET Mean = X1 + X2 + X3
is illegal because there is a Minitab function called MEAN. In general, it is better not to use Minitab command names as variable names in a macro.
Minitab help | Stat | Graph | SixSigma | DOE | Glossary | Reliability | SPC,MSA,CPK | ||
|