BDMP
Table of Contents

  Introduction
Running BMDP in Line Mode
Running BMDP for X-Windows


Introduction

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:

  • BMDP Manual Vols 1-3
  • BMDP User's Digest
  • BMDP for X-Windows User's Guide
  • BMDP sample programs stored in the Unix directory /usr/local/BMDP/inps

This document is designed as an introduction to running BMDP on Unix. It is not a tutorial on BMDP. ]


Running BMDP in Line Mode

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


Running BMDP for X-Windows

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:

  1. Create a BMDP directory by typing:

    server% mkdir Bmdp

  2. Change to this directory by typing:

    server% cd Bmdp

  3. Copy a sample BMDP file to this directory by typing:

    server% cp /usr/local/BMDP/inps/1v.inp .

    You can use any .inp file in this directory.

  4. To use the sample BMDP file that you copied, type:

    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.

Navigating the BMDP X-Window

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.

  1. Move the mouse pointer to the menu button labeled Input.
  2. Press and hold the left mouse button. The full menu pops up, revealing three options.
  3. Move the pointer to the File submenu and follow the arrow. The File submenu has four options.
  4. Move the pointer to the Get option and release the mouse button. This should display a dialog box asking for the name of the BMDP input file. You can type the name of the file or use the mouse to scroll the list of files and then click on the desired file name. This will display the file in the Input pane.
Getting Help

BMDP provides online help for the statistical programs and XBmdp options. To get help:

  1. Click the mouse pointer on the Help button.
  2. Select a Help option. Bmdp lists the BMDP programs, their capabilities, output, and order of instruction. Xbmdp lists the characteristics of the BMDP for X-windows interface.
  3. Choose the desired option in the help menu by clicking on it.
  4. When done, click the Quit button to exit from Help.
Using the Editor

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.

Action Command
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 ^>
delete ^d
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.

  1. Click the Run button.
  2. Select a BMDP program by clicking on it. You may need to scroll the list of programs. The selected program will begin execution in the output pane.

There are a number of ways in which you can submit the BMDP instructions to the program.

  1. Select the Input menu Edit option.
    • Type the input file in the Input pane or select the Input menu File option, choose Get on the submenu and select a file name.
    • Edit the input file if necessary.
    • Select the Input menu File option. Choose Save on the submenu to save the file.
    • Click the Run button and select a BMDP program.
    • Select the Input menu File option and choose Submit on the submenu.
  2. Click the Run button and select a program to run.
    • Choose the Input menu Edit option.
    • Type the input file in the Input pane or select the Input menu File option, choose Get on the submenu and select a file name.
    • Edit the file if necessary.
    • Edit the input file if necessary.
    • Select the Input menu File option. Choose Save on the submenu to save the file.
    • Select the Input menu File option and choose Submit on the submenu.
  3. Click the Run button and select a program to run.
    • Choose the Input menu Command option.
    • Select the Input menu File option and choose Submit on the submenu.
    • Select the file name.
  4. Click the Run button and select a program to run.
    • Choose the Input menu Command option.
    • Type the input file.
    • At the end of each BMDP paragraph, type '/' and press Enter to submit the paragraph to BMDP.
Exiting XBMDP

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.