PING  0.9
Statistical data handling and processing in production environment
Stata silc_db_locate
. silc_db_locate time src db [idir]

Arguments

  • time : a single selected year of interest;
  • src : string defining the source location where to look for bulk database; this can be any of the following strings:
    • raw so that the path of the search directory is set to the RAW data,
    • bdb, ibid with the value of BDB location,
    • pdb, ibid with the value of PDB location,
    • udb, ibid with the value of UDB location;
  • db : database to retrieve; it can be any of the following character values:
    • D for household register/D file,
    • H for household/H file,
    • P for personal register/P file,
    • R for register/R file, so as to represent the corresponding bulk databases;
  • idir : (option)

Return

In rclass object db, i.e. "`r(db)'" the path to the bulk dataset.

Example

Running for instance:

. silc_db_locate 2016 bdb p test
. use "`r(db)'", clear

will load: test\bdb_c16p.dta.

See also

SAS implementation.