Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: -project- and disappearing data base


From   Roberto Ferrer <[email protected]>
To   Stata Help <[email protected]>
Subject   st: -project- and disappearing data base
Date   Sun, 21 Jul 2013 03:11:51 +0100

User-written package -project- by Robert Picard and installed using:
net from http://robertpicard.com/stata

I'm having some trouble with the -project- commands. Specifically, It
seems as if after executing -project, creates()- the data base gets
wiped out. In the example I post below it happens at the end of the do
file contained in the project. But it also occurs in any part of the
file.

Immediately below is my master file:

version 12

* Common settings

set more off
set varabbrev off   // for long projects, it's best not to abbreviate
set linesize 132    // use 7pt font for printing

* Add a directory to the ado-path for programs that are local to this project

    adopath ++ "`c(pwd)'/ado"
    project, do("ado/link_ado_files.do")

* Make sample data base to develop code (original data base is too large)

    project, do("do_files/make_sample.do")



Now I post part of log file corresponding to the file -make_sample.do-

. sample 50, count
(34862727 observations deleted)

. disp "`pdir'/proc_data/siab_r_7508_v1_sample.dta"
/home/roberto/Dropbox/UCL/1_Dissertation/ucl_thesis_stata/proc_data/siab_r_7508_v1_sample.dta

.
. save "`pdir'/proc_data/siab_r_7508_v1_sample.dta", replace
file /home/roberto/Dropbox/UCL/1_Dissertation/ucl_thesis_stata/proc_data/siab_r_7508_v1_sample.dta
saved

.
. describe, short

Contains data from
/home/roberto/Dropbox/UCL/1_Dissertation/ucl_thesis_stata/proc_data/siab_r_7508_v1_sample.dta
  obs:            50                          SIAB-Regionalfile v1,
1975-2008, 17 Oct 2011
 vars:            26                          21 Jul 2013 02:45
 size:         2,050
Sorted by:

.
. project, creates("`pdir'/proc_data/siab_r_7508_v1_sample.dta")
project ucl_thesis_stata > do-file creates:
"proc_data/siab_r_7508_v1_sample.dta" filesig(1402936768:65096)

.
. describe, short

Contains data
  obs:             0
 vars:             0
 size:             0
Sorted by:


The data is there before the -project, creates()- and right after the
command it disappears. What's going on?

Any help is appreciated.

Stata 12.1 (64-bit)
Linux Mint Debian Edition (LMDE)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index