Minitab Session Commands: Appendix
Minitab Session Commands: Appendix
Minitab Session
Commands
Session Commands and the Session Window
Most functions in Minitab are accessible through menus, as well as through a command lan‐
guage called session commands. You can use menu commands and session commands inter‐
changeably, or you can use one of the two exclusively. Menu commands provide clickable op‐
tions through menus and dialog boxes. Session commands allow you to provide specific in‐
structions, through a command language. Most session commands are simple, easy to remem‐
ber words like PLOT, SAVE, or SORT.
The Session window is primarily used for displaying the results of commands, as text.
However, you can also type session commands in the Session window by turning on the MTB>
command prompt.
To turn on the MTB> command prompt, click on the Session window and select
Editor h Enable Command Language
from the Minitab menu. If you pull down the Editor menu, there is a check box to the left of
Enable Command Language. If there is already a check, selecting Editor h Enable Command
A‐1
A‐2 Chapter 24
Language will disable the command language. Type commands at the MTB> prompt in the last
line of the Session window.
Rules for Entering Session Commands
A session command consists of one main command and may have one or more subcommands.
Arguments and symbols may also be included in the command. Subcommands, which further
define how the main command should be carried out, are usually optional. Arguments specify
data characteristics.
To execute a command, type the main command followed by any arguments. If the
command has subcommands, end the command line with a semicolon. Type subcommands at
the SUBC> prompt. Put a semicolon (;) after each subcommand. Put a period (.) after the last
subcommand. Press <Enter> to execute a command.
Commands and column names are not case‐sensitive; you can type them in lowercase,
uppercase, or any combination. You can abbreviate any session command or subcommand by
using the first four letters.
Arguments specify data characteristics, such as location or titles. They can be variables
(columns or constants) as well as text strings or numbers. Enclose variable names in single quo‐
tation marks (for example, HISTOGRAM ‘Salary’). In arguments, variable names and variable
numbers can be used interchangeably. For example, DESCRIBE C1 C2 and DESCRIBE ‘Sales’ C2
do the same thing if C1 is named ‘Sales.’
You can abbreviate a consecutive range of columns, stored constants, or matrices with a
dash. For example, PRINT C2‐C5 is equivalent to PRINT C2 C3 C4 C5. You can use a stored
constant (such as K20) in place of any constant. You can even use stored constants to form a
range such as K20:15, which represents all integers from the value of K20 to 15.
Command Prompts
The prompts that appear in the Session window help you know what kind of input Minitab ex‐
pects. There are five different prompts:
MTB> Command prompt; type the session commands here and press Enter.
SUBC> Subcommand prompt; type the subcommands here or type ABORT to cancel the en‐
tire command.
DATA> Data prompt; enter data here. To finish entering data and return to the MTB> prompt,
type END and press Enter.
CONT> Continuation prompt; if the command from your previous line ends with the con‐
Statistical Process Control A‐3
tinuation symbol &, Minitab displays CONT> on the next line so you can enter the
rest of the command or data.
Session Command Syntax and Menu Equivalents
In the following, commands are listed by function. In the session command syntax, K denotes a
constant such as 8.3 or k14, C denotes a column, such as C12 or ‘Height,’ and E denotes either a
constant or column. Square brackets [ ] enclose optional arguments. Menu equivalents follow
each command or group of commands.
General Information
HELP command
Help h Search for Help on
INFO [C...C]
menu equivalent not available
STOP
File h Exit
Managing Data
SET data into C
Calc h Make Patterned Data
INSERT data [between rows K and K] of C...C
Editorh Insert Cells
END of data
menu equivalent not available
NAME E = 'name' ... E = 'name'
In the Data window, click a column name cell and type the name
PRINT the data in E...E
Data h Display Data
SAVE [in file in "filename" or K]
File h Save Worksheet (As)
RETRIEVE [file in "filename" or K]
File h Open Worksheet
A‐4 Chapter 24
Editing and Manipulating Data
CODE (K...K) to K ... (K...K) to K for C...C, put in C...C
Data h Code
DELETE rows K...K of C...C
Data h Delete Rows
ERASE E...E
Data h Erase Variables
INSERT data [between rows K and K] of C...C
Editorh Insert Cells
LET C(K) = K
Calc h Calculator
SORT C [carry along C...C] put into C [and C...C]
Data h Sort
STACK (E...E) on ... on (E...E), put in (C...C)
Data h Stack h Columns
UNSTACK (C...C) into (E...E) ... (E...E)
Data h Unstack Columns
Arithmetic
LET E = expression
ADD E to E...E, put into E
SUBTRACT E from E, put into E
MULTIPLY E by E...E, put into E
DIVIDE E by E, put into E
RAISE E to the power E put into E
ABSOLUTE value of E put into E
SQRT of E put into E
LOGE of E put into E
LOGTEN of E put into E
EXPONENTIATE E put into E
ANTILOG of E put into E
ROUND E put into E
Calc h Calculator
CENTER the data in C...C put into C...C
Calc h Standardize
COUNT the number of values in C [put into K]
N count the nonmissing values in C [put into K]
NMISS (number of missing values in) C [put into K]
SUM of the values in C [put into K]
MEAN of the values in C [put into K]
Statistical Process Control A‐5
A‐6 Chapter 24
PIECHART C...C
Graph h Pie Chart
PLOT C vs C
Graph h Scatterplot
TSPLOT [period = K] of C
Graph h Time Series Plot
Basic Statistics
CORRELATION C...C
Stat h Basic Statistics h Correlation
DESCRIBE variables in C...C
Stat h Basic Statistics h Descriptive Statistics
ONET C...C
Stat h Basic Statistics h 1‐Sample t
ONEZ C...C
Stat h Basic Statistics h 1‐Sample Z
PAIR C C
Stat h Basic Statistics h Paired t
PONE C...C or K K...K
Stat h Basic Statistics h 1 Proportion
POWER
Stat h Power and Sample Size
PTWO C C or K K K K
Stat h Basic Statistics h 2 Proportions
TWOSAMPLE test and CI [K% confidence] samples in C C
Stat h Basic Statistics h 2‐Sample t
TWOT test with [K% confidence] data in C, groups in C
Stat h Basic Statistics h 2‐Sample t
CORRELATION between C...C
Stat h Basic Statistics h Correlation
Regression
Statistical Process Control A‐7
A‐8 Chapter 24
SCHART
Stat h Control Charts h Variables Chart for Subgroups h S
XBARCHART
Stat h Control Charts h Variables Chart for Subgroups h Xbar
XSCHART
Stat h Control Charts h Variables Chart for Subgroups h Xbar‐S