You found another bug ;). (my comments should be validated by Allin or Jack)
h1 - The append command used from within the function causes the crash (there are some restrictions to access the dataset). The crash should not occur but some error message should be displayed. h2 - There is a data frequency mismatch caused by the setobs command. The append command is aborted when called from main script producing a proper error message, but crashed when called from within the function. Attached is the modified script file. Using CVS build 1.10 in Linux. I changed the filename to match capitalized names. This is the Linux shell output: [helio(a)localhost gretl]$ gretl -e elimThousSep.inp & [1] 11101 [helio(a)localhost gretl]$ S[0] = '2015-01-29', ed1 = 735640 guessed daily pd = 5 check_daily_dates: data are reversed? check_daily_dates: daily pd = 5, reversed = 1, err = 0 +++ outfile --close: ignoring redundant filename S[0] = '2015-01-30', ed1 = 735641 guessed daily pd = 5 check_daily_dates: data are reversed? check_daily_dates: daily pd = 5, reversed = 1, err = 0 merge_data: opt=0 special: merging daily data addobs (1) = 0 addobs (2) = 0 --- This is the script output: gretl version 1.10.0cvs Current session: 2015-02-01 16:51 # messages off first row label "2015-01-29", last label "2000-01-31" trying to parse row labels as dates... Trying date order YYYYMMDD Could be 2015-01-29 - 2000-01-31 Observations: 3826; days in sample: 3914 Missing daily rows: 88 Listing 6 variables: 0) const 1) Erster 2) Hoch 3) Tief 4) Schlusskurs 5) Volumen bundle exchange: XETRA = 6 INDEX = 12 bundle ticker: DAI = 297 DAX = 290 URL: http://www.ariva.de/quote/historic/historic.csv?secu=290&boerse_id=12&clean_split=1&clean_payout=0&clean_bezug=0&min_time=31.1.2014&max_time=31.1.2015&trenner=%3B&go=Download first row label "2015-01-30", last label "2014-01-31" trying to parse row labels as dates... Trying date order YYYYMMDD Could be 2015-01-30 - 2014-01-31 Observations: 252; days in sample: 261 Missing daily rows: 9 Listing 6 variables: 0) const 1) Erster 2) Hoch 3) Tief 4) Schlusskurs 5) Volumen ---- Best Regards. Hélio On Sun, Feb 1, 2015 at 2:10 PM, Wingenroth, Thorsten < Thorsten.Wingenroth(a)dhbw-stuttgart.de> wrote: > Hi, > > > > as Jack suggested, I started learning Hansl. > > > > I tried to implement a download from the website ariva.de which offers > data on all sorts of securities (stocks, funds, etc.) traded in Germany. > While the download is fine, getting the files into Gretl proved hard. The > hansl file “elimThousSep.inp” contains the following line near the end: > > > > append @strFile > > > > This makes Gretl crash. It has something to do with the prior “open” > command (second last line of code) because without, there is no crash. > > > > I attach the file together with an additional small include > (arivaTickers.inp) and the csv file. Gretl version is 1.9.92 on a Windows > PC. > > > > Thanks for your help! > > > > Thorsten > > > > > > *Thorsten Wingenroth* > > Professor für Lehraufgaben BWL-Bank > > Fakultät Wirtschaft | Studienzentrum Finanzwirtschaft (Center of Finance) > > > > *Duale Hochschule Baden-Württemberg Stuttgart* > > Baden-Wuerttemberg Cooperative State University Stuttgart > > Herdweg 18 | 70174 Stuttgart > > Fon +49 711 1849-766 > > thorsten.wingenroth(a)dhbw-stuttgart.de | http://www.dhbw-stuttgart.de/bank > > > > *Master in Business Management – Banking & Finance* > > http://www.dhbw.de/master-finance > > > > > > _______________________________________________ > Gretl-users mailing list > Gretl-users(a)lists.wfu.edu > http://lists.wfu.edu/mailman/listinfo/gretl-users >
You found another bug ;).
[helio@localhost gretl]$ gretl -e elimThousSep.inp &
[1] 11101
[helio@localhost gretl]$ S[0] = '2015-01-29', ed1 = 735640
guessed daily pd = 5
check_daily_dates: data are reversed?
check_daily_dates: daily pd = 5, reversed = 1, err = 0
+++ outfile --close: ignoring redundant filename
S[0] = '2015-01-30', ed1 = 735641
guessed daily pd = 5
check_daily_dates: data are reversed?
check_daily_dates: daily pd = 5, reversed = 1, err = 0
merge_data: opt=0
special: merging daily data
addobs (1) = 0
addobs (2) = 0
---
gretl version 1.10.0cvs
Current session: 2015-02-01 16:51
# messages off
  first row label "2015-01-29", last label "2000-01-31"
trying to parse row labels as dates...
Trying date order YYYYMMDD
Could be 2015-01-29 - 2000-01-31
Observations: 3826; days in sample: 3914
Missing daily rows: 88
Listing 6 variables:
 0) const         1) Erster        2) Hoch          3) Tief       Â
 4) Schlusskurs   5) Volumen    Â
bundle exchange:
 XETRA = 6
 INDEX = 12
bundle ticker:
 DAI = 297
 DAX = 290
URL: http://www.ariva.de/quote/historic/historic.csv?secu=290&boerse_id=12&clean_split=1&clean_payout=0&clean_bezug=0&min_time=31.1.2014&max_time=31.1.2015&trenner=%3B&go=Download
  first row label "2015-01-30", last label "2014-01-31"
trying to parse row labels as dates...
Trying date order YYYYMMDD
Could be 2015-01-30 - 2014-01-31
Observations: 252; days in sample: 261
Missing daily rows: 9
Listing 6 variables:
 0) const         1) Erster        2) Hoch          3) Tief       Â
 4) Schlusskurs   5) Volumen    Â
----
Hi,
Â
as Jack suggested, I started learning Hansl.
Â
I tried to implement a download from the website ariva.de which offers data on all sorts of securities (stocks, funds, etc.) traded in Germany. While the download is fine, getting the files into Gretl proved hard. The hansl file âelimThousSep.inpâ contains the following line near the end:
Â
   append @strFile
Â
This makes Gretl crash. It has something to do with the prior âopenâ command (second last line of code) because without, there is no crash.
Â
I attach the file together with an additional small include (arivaTickers.inp) and the csv file. Gretl version is 1.9.92 on a Windows PC.
Â
Thanks for your help!
Â
Thorsten
Â
Â
Thorsten Wingenroth
Professor für Lehraufgaben BWL-Bank
Fakultät Wirtschaft | Studienzentrum Finanzwirtschaft (Center of Finance)
Â
Duale Hochschule Baden-Württemberg Stuttgart
Baden-Wuerttemberg Cooperative State University Stuttgart
Herdweg 18 | 70174 Stuttgart
Fon +49 711 1849-766
thorsten.wingenr...@dhbw-stuttgart.de | http://www.dhbw-stuttgart.de/bank
Â
Master in Business Management â Banking & Finance
http://www.dhbw.de/master-finance
Â
Â
_______________________________________________
Gretl-users mailing list
gretl-us...@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
elimThousSep.inp
Description: application/gretlscript