I must save a lot of graphs and i would like to generate automatically the name of these ones, indeed without rename each files.
I tried this code but without approrpiate results.
Code: Select all
compute nlags = 1
compute ivlags = 1
compute con1lags = 1
***** Reading the data
Cal(q) 1975:1
open data RATES_GDP_qtq.xls
data(unit=data,for=xls,org=obs) 1975:01 2010::2
set tvar = usa(t)
compute tvlabel = %label(usa)
set g = singapore(t)
compute enlabel = %label(singapore)
set con1 = malaysia(t-con1lags)
compute exlabel = %label(malaysia)
dec string glabel
compute glabel = enlabel + "_" + %string(nlags) + "_" + exlabel + "_" + %string(con1lags) + "_" + tvlabel + "_" + %string(ivlags)
env gsave="glabel.eps" gformat=portrait
spgraph(header=tlabel, footer=ivfooter,vfields=1,hfields=2)
graph(footer="endogene")
# g / 2
graph(min=0.0,max=1.0,footer="P1")
# p2tr / 2
spgraph(done)Regards