I would like to save in two strings the year and quarter of the last
observation of a quarterly series. I got to obtain the quarter but I don't
know how to save the year.
In the script below, the string @send contains the last observation = 1993:4
and the string @per contains the quarter =4. Any ideas about how to obtain the
year?
<script>
open data9-3
scalar endobs=lastobs(reskwh)
sprintf send "%s", date(endobs)
string per = @send + 5
print "@send"
print "@per"
</script>
Note for the programmers: I suggest two new commands, year() and period(),
similar to date() to obtain these strings.
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.et.bs.ehu.es
--
Para leer y escribir documentos en formato "open document"
(.ods, .odt, .odb, odp) utilice
OpenOffice.org o también
MS Office, instalando el "plugin":
http://www.sun.com/software/star/odf_plugin