Read and write in stata fileformat
x = xptopen(filename) x = xptopen(filename,'r') read filename and return variables in struct x xptopen(filename,'w',x) save fields of struct x in filename x = xptopen(filename,'a',x) append fields of struct x to filename
[1] TS-140 THE RECORD LAYOUT OF A DATA SET IN SAS TRANSPORT (XPORT) FORMAT
http://support.sas.com/techsup/technote/ts140.html
[2] IBM floating point format
http://en.wikipedia.org/wiki/IBM_Floating_Point_Architecture
[3] see http://old.nabble.com/Re%3A-IBM-integer-and-double-formats-p20428979.html
[4] STATA File Format
http://www.stata.com/help.cgi?dta
http://www.stata.com/help.cgi?dta_113