Hello Sir

Have some issues with including titles in histograms in a loop.
The code is running but no output.

Even when I got output in some other method, I am unable to get the way I want.
I want the block names as headings (ex. Achalpur)

Please help

-------------------------------------------------------------------------------------------The code is-------------------------


local districts Amhednagar Amravati Dhule Jalna Yavatmal
levels district, local(districts)

local blocks Achalpur Akole Ambad Amravati "Anjangaon S" Arni Babhulgaon Badnapur ///
Bhatkuli Bhokardan "Chandur Bz" "Chandur Ril" Chikhaldara ///
Darwha Daryapur "Dhamangaon Ril" Dharni Dhule Digras Ghansawangi ///
Ghatanji Jafrabad Jalna Jamkhed Kalamb ///
Karjat Kelapur Kopargaon Mahagaon Mantha Maregaon Morshi ///
Nagar "Nandgaon Kh" Nevasa Parner ///
Partur Pathardi Rahata Rahuri Sakri Sangamner Shevgaon Shindkhede ///
Shirpur Shrigonda Tiwsa Umarkhed Wani ///
Warud Yavatmal "Zari Jamni"

levels block, local(blocks)

foreach c of local districts {
local i=1
*di `"`: var label `dist''"'
di `"`: label (districts) `"'

histogram soc if district=="`c'" , frequency barwidth(0.05) title(`=strtoname("`c'")') xtitle(SOC)
graph save "`c'"_dt , replace
graph export `district'_dt.wmf, replace
local i=`i'+1
}