/* Since NHANES data files can be very large, don't forget to set your */ /* memory. See the Stata Tips page for more information. */ /*save work to a log file*/ log using "C:\nhanes\log\bpx_b.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\bpx_b.xpt", clear sort seqn save "C:\nhanes\data\bpx_b.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\bpx.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\bpx.xpt", clear sort seqn save "C:\nhanes\data\bpx.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\bpq.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\bpq.xpt", clear sort seqn save "C:\nhanes\data\bpq.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\bpq_b.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\bpq_b.xpt", clear sort seqn save "C:\nhanes\data\bpq_b.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\alq.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\alq.xpt", clear sort seqn save "C:\nhanes\data\alq.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\alq_b.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\alq_b.xpt", clear sort seqn save "C:\nhanes\data\alq_b.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\lab13.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\lab13.xpt", clear sort seqn save "C:\nhanes\data\lab13.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\l13_b.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\l13_b.xpt", clear sort seqn save "C:\nhanes\data\l13_b.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\mcq_b.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\mcq_b.xpt", clear sort seqn save "C:\nhanes\data\mcq_b.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\mcq.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\mcq.xpt", clear sort seqn save "C:\nhanes\data\mcq.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\demo_b.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\demo_b.xpt", clear sort seqn save "C:\nhanes\data\demo_b.dta", replace /*note file will save with a .dta extension if not specified*/ log close /*save work to a log file*/ log using "C:\nhanes\log\demo.log", replace /*read data from sas transport file*/ fdause "C:\nhanes\data\demo.xpt", clear sort seqn save "C:\nhanes\data\demo.dta", replace /*note file will save with a .dta extension if not specified*/ log close