BioStatMatt / sas7bdat

A reverse engineering of the sas7bdat database file format
83 stars 21 forks source link

Field identified: data block count #3

Open JasonHanley opened 11 years ago

JasonHanley commented 11 years ago

In the Row Size Subheader, I believe 292|568 is data block count := BC (at least in files with only one page).

I discovered this trying to write an sas7bdat file. Both fields must be set for all versions of SAS to read the file.

ClintCummins commented 11 years ago

Dear Jason,

In the Row Size Subheader, I believe 292|568 is data block count := BC (at least in files with only one page).

I discovered this trying to write an sas7bdat file. Both fields must be set for all versions of SAS to read the file.

Yes, I agree. I have been able to write .sas7bdat files also. Here is what I found about those particular fields in the Row Size Subheader:

280 / 544 4 / 8 medium int, Page for first data row := PD1 284 / 552 2 medium int, Position for first data row 286 / 554 2 / 6 low zeroes 288 / 560 4 / 8 medium int, Page for last data row 292 / 568 2 medium int, Position for last data row

Sincerely,

Clint