divide

Purpose: This program takes a data set as input and divides it into a maximum of 99 subfiles. Its main purpose is to allow one to write out a large data set from UNIX to a multi-volume external device.

To run, enter: divide a b c d

where

For example, to divide up the 1990 STF3C data into four subfiles enter:

divide 3c_dat 5000 19900 16200

The result will be a file 3c_dat.01 of 5000 records, file 3c_dat.02 of 5000 records, file 3c_dat.03 of 5000 records, and file 3c_dat.04 of 1200 records.

Notes:

  1. To run in the background, add an ampersand to the run statement:

    divide 3c_dat 5000 19900 16200 &

  2. If data are compressed, the data can be piped in from a decompression program. You will need to use the dividecomp version of the utility to do this.

    zcat /usr/pops/d3/stf/1990/3c/3c_dat.Z | dividecomp 5000 19900 16200 &


PSC blog

Recent resources, events, news

New Publications

Bingenheimer & Geronimus, "Behavior & HIV"

Wildeman, "Imprisonment & Infant Mortality," PSC Research Report

Next Brown Bag

Tues, Dec 1
Arland Thornton & Barb Koremenos
Mobilizing for Human Rights
For live stream
LINK HERE


W A R N I N G

If you are reading this, it may be that you are using rather old web browsing software that does not support modern international Web technology standards. For a better experience of the Web and this site in particular, please upgrade your web browser software today. The following are good choices: Firefox 2; Opera 9; Safari 3.