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: RE: Using Global Variables to Specify directories in dictionaries


From   "Lachenbruch, Peter" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: Using Global Variables to Specify directories in dictionaries
Date   Mon, 17 Sep 2012 23:39:13 +0000

first of all, try signing your name.  Anonymous posts are not proper on this list.

Peter A. Lachenbruch,
Professor (retired)
________________________________________
From: [email protected] [[email protected]] on behalf of Stata List [[email protected]]
Sent: Monday, September 17, 2012 10:37 AM
To: [email protected]
Subject: st: Using Global Variables to Specify directories in dictionaries

I am trying to loop an infiling protocol through several datasets with
different names. I am using the following:

global dictionarypath="$root_path\$dataset_to_use.abc"
infile using "$root_path\Dictionary.dct", clear

The dictionary starts like this:

dictionary using "$dictionarypath" {

I get the following error:

file $dictionarypath.raw not found
dictionary invalid

I've played with including and not including the file extension, and
the directory seems correct. Any help would be appreciated.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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