Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: basic string operations


From   "Alexander Nervedi" <[email protected]>
To   [email protected]
Subject   st: basic string operations
Date   Mon, 17 Apr 2006 05:27:39 +0000

Hi!

I have a dictionary in a set of folders and data in another folder.

global dict "C:\Program Files\ .......\Dict"
global data "C:\Program Files\ .......\Data"
gloabl filename "file2 ... file 200"

Now I need to place a call like

inflie "C:\Program Files\ .......\Dict\file.dct", using("C:\Program Files\ .......\Data\file1.raw"
tempfile data
save "`data'"

for file in `filename'{

inflie "'$dict`$file.dct' ", using(" $data'$var' ")
append "`data'"

}


the code keeps bailing at the for loop insheet saying it cant chaneg directories. is there a neat way of specifying directory changes with two strings ?

any help would be really great. i have been banging my head on this for a bit.

alex

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index