Hi Everyone,
I just made a quick example of the issues in my current program. I'm having the hardest time figuring this out. I've tried every combination of double quotes/embedding options. If I double quote in the program call line, the argument (where_1) goes unrecognized. Any suggestions here? This seems so daarrrrn simple...
cap program drop auto_test
program define auto_test
args where_1 where_2
sysuse auto, clear
g test_var1 = `"keep if make="AMC Concord""'
ta test_var1
g test_var2= `where_1'
ta test_var2
`where_1'
`where_2'
end
auto_test `"keep if make="AMC Concord""' "keep if price>=5000"
I just made a quick example of the issues in my current program. I'm having the hardest time figuring this out. I've tried every combination of double quotes/embedding options. If I double quote in the program call line, the argument (where_1) goes unrecognized. Any suggestions here? This seems so daarrrrn simple...
cap program drop auto_test
program define auto_test
args where_1 where_2
sysuse auto, clear
g test_var1 = `"keep if make="AMC Concord""'
ta test_var1
g test_var2= `where_1'
ta test_var2
`where_1'
`where_2'
end
auto_test `"keep if make="AMC Concord""' "keep if price>=5000"
Comment