
From  David Kantor <kantor.d@att.net> 
To  statalist@hsphsun2.harvard.edu 
Subject  Re: st: binary format type str question 
Date  Tue, 13 Mar 2007 09:29:16 0400 
Thanks David. That's what I think I'm doing and it works for data_label and time_stamp, but it doesn't seem to work for the str types.
Here's an example. There are 6 variables with types 98, 136, 102, 105, 102, and 98. I read that as 6 str types with maximum lengths 98 bytes, 136 bytes, etc. There are 51 observations. But the remaining number of bytes is 1071. This means there are 3.5 bytes per datum. There aren't enough bytes to go around if I assume fixed lengths! One the other hand, if I try to start another variable as soon as I hit a zero, I find there are multiple zeros in a row, which would seem to indicate no data for some variables. Hmm. Clearly I'm missing something.
Mark.
[...]
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2017 StataCorp LLC  Terms of use  Privacy  Contact us  What's new  Site index 