Reading Free-Format Data | |
Free-Format Data |
You may have worked with raw data contained in fixed fields.
In doing so, you used column input to read standard data values in fixed
fields. Or, you may have used formatted input to read both standard and
nonstandard data in fixed fields.
Suppose you have raw data that is free-format; that is, it is not arranged in fixed fields. The fields may be separated by blanks or some other delimiter, as shown below. Column and formatted input that you may have used before to read standard and nonstandard data in fixed fields won't work in this case. |
ABRAMS*L.*MARKETING*$8,209 |
BARCLAY*M.*MARKETING*$8,435 |
COURTNEY*W.*MARKETING*$9,006 |
FARLEY*J.*PUBLICATIONS*$8,305 |
HEINS*W.*PUBLICATIONS*$9,539 |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.