Used when invoking session commands to show that the command continues on the next line. This is used for breaking long commands into segments which can be fit on the command line and are easier to read.
In the example that follows, command language is used to create a complex polygon. Instead of writing all of the coordinates on a single line, the continuation symbol was used to make it more manageable.
Plot Height * Weight; Polygon 114.911 70.4736 134.524 71.8742 & 147.784 74.7336 167.398 75.5506 & 171.818 74.2668 185.078 75.7257 & 195.852 75.7257 195.576 73.5081 & 203.587 72.3994 219.057 72.7495 & 218.781 71.4657 201.101 71.2906 & 186.183 70.8821 178.172 70.0068 & 178.448 68.5479 167.398 67.9643 & 131.486 63.2959 144.469 61.0783 & 140.049 60.4948 125.132 61.8953 & 117.121 61.6035 104.966 60.9616 & 103.584 62.4789 92.258 62.6539 & 92.258 63.5293 112.701 66.0969 & 106.071 68.1978.
If you type the symbol & at the end of a line in the Session window, Minitab displays the CONT> prompt on the next line to indicate a continuation of the previous line.
When using READ, you can use a space or a comma to separate data entries. For example:
READ C1 C2 1 2 3,4 END.
KKCAT K1 K2 K3
KKNAME stores the name of column C in the constant K. For example, if you want to store the name of column C1 in the constant K4, use the following syntax:
KKNAME K4 C1
KKSET stores the text within the double quotes in the constant K. For example, if you want store the word Minitab in constant K5, use the following syntax:
KKSET K5 "Minitab"
Yes, you can use the WORKSHEET command with the CLOSE subcommand. Suppose you want to close a worksheet named "Worksheet 1". Use the following commands:
WORKSHEET "Worksheet 1"; CLOSE.
If you do not want the user to be prompted to save the worksheet that is being quit, you can also add the NOPROMPT subcommand:
WORKSHEET "Worksheet 1"; CLOSE; NOPROMPT.
In an exec, EXIT terminates Minitab. In a global or local macro, the command EXIT transfers control back to interactive Minitab.
In an exec, EXIT terminates Minitab.
Use the DTYPE command to store the data type as constants. For example, suppose you want the data type of C1 to be stored in K1.
If the column contains integers, real numbers, or date/time values, but it is formatted as text (i.e. the column number appears with a -T), K1 will equal 0.
If the suffixed variable has a determined range, you do not need to include it on the template. For example, you could declare columns b.1-b.10 and not include it on the template.
MACRO SAMPLE a MCOLUMN a b.1-b.10
If the suffixed variable has an undetermined range, the suffixed variable or the suffix must be defined on the template. For example, if n is a constant, you could include the entire suffixed variable or the suffix on the template.
MACRO SAMPLE a b.1-b.n MCOLUMN a b.1-b.n
MACRO SAMPLE a b n MCOLUMN a b c.1-c.n
You could use an optional subcommand so that the suffixed variable with an undetermined range is on the template, but the user does not have to include it when invoking the macro. For example,
MACRO SAMPLE a b; OBS n. MCONSTANT a b n DEFAULT n = 600 LET n = a * b
Suppose you are writing a global macro and want to name the first available column in the worksheet "EMPTY". Here are the commands in a global macro named FINDNEXT.
GMACRO FINDNEXT DO K101 = 1:1000 DTYPE CK101 K102 IF K102 = 10 NAME CK101 "EMPTY" EXIT ENDIF ENDDO ENDMACRO
This macro assumes that you do not have more than 1000 columns and that constants K101, K102 and K103 are empty.
For more information about the DTYPE Session command, choose Alphabetical Command List. Click DTYPE.. Click
You can use the NAME command. For example, to name column C1 with the value of K1:
NAME C1 K1