I am attempting to read NHANES III, a publicly available epidemiological dataset available from: https://wwwn.cdc.gov/nchs/nhanes/nhanes3/datafiles.aspx#core
It is not clear how to do this but they do provide a data file and a SAS file:
https://wwwn.cdc.gov/nchs/data/nhanes3/1a/lab.dat
https://wwwn.cdc.gov/nchs/data/nhanes3/1a/lab.sas
The data file does not seem to be a conventional SAS export format. Here is a sample of the header:
00003038722311121202610404037061400.6411144120 000001523001737.58001735.14003702.83 000000000 000000000000003046003475.15003470.28007405.66 000000000
But the SAS file seems to describe its format with LENGTH, FORMAT, INPUT and LABEL headers:
FILENAME LAB "D:\LAB\DAT\LAB.DAT" LRECL=1979;
*** LRECL includes 2 positions for CRLF, assuming use of PC SAS;
DATA WORK;
INFILE LAB MISSOVER;
LENGTH
SEQN 4
DMPFSEQ 5
DMPSTAT 3
......
FORMAT
DMPPIR Z6.3
WTPFQX6 Z9.2
WTPFEX6 Z9.2
......
INPUT
SEQN 1-5
DMPFSEQ 6-10
DMPSTAT 11
......
LABEL
SEQN = "Sample person identification number"
DMPFSEQ = "Family sequence number"
DMPSTAT = "Examination/interview Status"
Any idea how to read this into a friendly format?