Change from…
To…
save c:\trk2022\stata\TRK2022TR_R.dta
Save ~/Desktop/trk2022/stata/TRK2022TR_R.dta
File TRK2022TR_R.dct:
Change from…
dictionary using c:\trk2022\data\TRK2022TR_R.da {
column(1) str6 HHID %6s "HOUSEHOLD IDENTIFIER"
column(7) str3 PN %3s "PERSON NUMBER"
[additional dictionary statements]
}
To…
dictionary using ~/Desktop/trk2022/data/TRK2022TR_R.da {
column(1) str6 HHID %6s "HOUSEHOLD IDENTIFIER"
column(7) str3 PN %3s "PERSON NUMBER"
[additional dictionary statements]
7B. Working in a Linux Environment
7B1. Linux: Stata
In the following system file build example we assume that the user (user1) has
downloaded the 2022 tracker dataset and placed the files in a folder called
trk2022 (/home/user1/trk2022), with the ASCII data file (.da) stored in
subfolder data (/home/user1/trk2022/data) and the syntax files (.do/.dct) in
subfolder stata (/home/user1/trk2022/stata).
This process is very similar to the OS X example shown above. The main
difference is that the file/folder structure will be somewhat different when he
.do and .dct files in the stata folder are modified.
File TRK2022TR_R.do:
Change from…
infile using c:\trk2022\stata\trk2022tr_r.dct
To…
infile using /home/user1/trk2022/stata/trk2022tr_r.dct
Change…
save c:\trk2022\stata\TRK2022TR_R.dta
To…
Save /home/user1/trk2022/stata/trk2022tr_r.dta
File TRK2022TR_R.dct:
Change from…
dictionary using c:\trk2022\data\trk2022tr_r.da {
column(1) str6 HHID %6s "HOUSEHOLD IDENTIFIER"
column(7) str3 PN %3s "PERSON NUMBER"
[additional dictionary statements]
}
To…
dictionary using /home/user1/trk2023/data/trk2022tr_r.da {
12
February 2024, Version 1.0