On Sun, 1 Feb 2015, Hélio Guilherme wrote: > 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.
Quite right. As things stand, the "append" command should not be allowed within a function. This is because for append to work correctly the full dataset must be "in scope", but inside a function it's not: only such variables as have been passed as function arguments are "visible". > 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. [...] Hmm, I see what you mean, but in Thorsten's script elimThousSep.inp, as it stands, the "setobs" command is harmless since it's overruled by "open DAX_clean.csv" which establishes the correct data frequency. Allin > 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