Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: From: "Marko Ledic" <>

Subject   st: From: "Marko Ledic" <>
Date   Sat, 3 Nov 2012 12:40:27 +0100

Dear StataList,

After running the code (below) I get an error message
invalid file specification r(198).
Can someone let me know how to properly specify the file?

/**global macros**/
global var_hh hhid own
global var_pp hhid dname
global datasets us04 it04

/**program make data**/
foreach ccyy in $datasets {
use $var_pp using $`ccyy'p,clear
merge m:1 hhid using $`ccyy'h,keepusing($var_hh)
if "`ccyy'" != "us04" {
append using $mydata
save $mydata,replace

Best regards, Marko

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index