Running BMDP in Line Mode
Running BMDP for X-Windows
BMDP is a collection of 44 statistical programs for data analysis. Although the output from the programs indicates that the vendor is BMDP Statistical Software Inc., this is no longer true, as the company was purchased by SPSS Inc. of Chicago in 1995. SPSS Inc. has stopped all development work on BMDP, choosing to incorporate some of its capabilities into other products, primarily SYSTAT, instead of providing further updates to the BMDP product. Academic Computing and Networking does not currently have a license for the more expensive SYSTAT product.
As our primary reason for providing BMDP software on the Unix system is to accommodate migrating mainframe BMDP users, Academic Computing and Networking has purchased a perpetual license to use Release 7.1 of BMDP on our Solaris system. Unfortunately, with no commitment to ongoing support for this product by the vendor, we can not be sure that it will be compatible with future upgrades to our operating system. However, problems are more likely to develop with the X-window interface than with the rest of the software, and it is the background processing environment which will be most familiar to our mainframe BMDP users.
On Unix, the BMDP programs can be run as background processes (line mode), or with an X-Windows interface. The X interface integrates data analysis with online help and interactive graphics. It includes input, output, and graphics panes along with on-screen menus and dialog boxes.
BMDP documentation consists of:
This document is designed as an introduction to running BMDP on Unix. It is not a tutorial on BMDP. ]
If you prefer to run BMDP programs as background processes, or you don't have access to X-windows, you can run BMDP without the graphical interface. You invoke BMDP by typing bmdp program_name . Normally, you would also specify an input filename and output filename. To run the process in the background so you can execute other Unix commands, append an ampersand ('&') to the previous command. For example:
server% bmdp 4v /usr/local/BMDP/inps/4v.inp 4v.out &
This will run the sample for program 4v and put the output in a file named 4v.out in your current Unix directory. To view the output on your screen, enter:
server% more 4v.out
To print the output, enter:
server% a2ps -Pcopyctr -nH -l -1 4v.out
or choose your favourite Unix print command. The a2ps command shown above translates the ASCII text file to postscript, and prints on the "copyctr" printer in landscape mode, one logical page per sheet side, without headings. Landscape printing is recommended, as BMDP often produces output lines of more than 80 characters. BMDP also tends to put a page eject command right at the beginning of its output files. You may wish to edit the Ctrl-L signal from the beginning of the file before printing it. However, you can alternately print to the free computing lab impact printers using the lpr command:
server% lpr -Peng524 4v.out
This section of the document describes BMDP in an X interface and it assumes familiarity with X-windows. To benefit, you should have a BMDP session running as described later.
BMDP for X is meant primarily for workstations with a graphics monitor, X-windows software, and a mouse. Motif can be used as the window manager; other X-window managers should work as well. All Academic Computing and Networking workstations have the necessary hardware and software to run BMDP for X. These workstations are available in the Engineering, Machray Hall, and Dafoe computing facilities. You can also use an X-windows emulator to run an X-window session on your PC (X-Win32) or Macintosh (MacX) if you have an Ethernet connection.
To begin an XBmdp session:
server% mkdir Bmdp
server% cd Bmdp
server% cp /usr/local/BMDP/inps/1v.inp .
You can use any .inp file in this directory.
server% xbmdp 1v 1v.inp &
where '1v' is the BMDP program name. This will run the 1v.inp program in a windowing environment.
Or, to start with a blank BMDP X-window, type:
server% xbmdp &
You can also retrieve a BMDP file from within the BMDP X-window as described below.
The BMDP X-window has three panes. The top pane displays graphics output, the middle pane displays text output, and the bottom one is for entering BMDP commands. You can resize a pane with the mouse by clicking and dragging the square grip in the lower right corner of the pane. Each grip controls the size of two adjoining window panes so that increasing the size of one pane decreases the size of the other.
In a BMDP X-window, you can use the mouse to choose menu commands. For example, follow these steps to retrieve a BMDP input file.
BMDP provides online help for the statistical programs and XBmdp options. To get help:
You can enter, edit, and save a BMDP input file in the Input pane. The following commands are available in the built in editor. The '^' indicates the Ctrl key.
|right 1 char||^f or <cursor right>|
|left 1 char||^b or <cursor left>|
|beginning of line||^a|
|end of line||^e|
|next line||^n or <cursor down>|
|previous line||^p or <cursor up>|
|next page||^v or <Page Down>|
|previous page||<Page Up>|
|top of file||^<|
|end of file||^>|
|backspace||<Backspace> or <Delete>|
|delete to end of line||^k|
|retrieve deleted line||^y|
You can change the default editor by typing:
server% setenv BMDP_EDIT editor_name
at the Unix shell prompt or in the .cshrc file.Executing BMDP Instructions
You must select a BMDP program first to run on an input file.
There are a number of ways in which you can submit the BMDP instructions to the program.
Click the Quit button to end an XBmdp session. You may want to enter file names for saving output, graphics, or setup defaults. Click the Confirm button and then click the Quit button again to exit BMDP.