Statalist The Stata Listserver

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

st: basic string operations

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


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.


Express yourself instantly with MSN Messenger! Download today - it's FREE!

* For searches and help try:

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