Hi Allin,

 

I’m a huge fan of the gretl platform and use it quite a bit in my professional job. But recently, I’ve run into some trouble.  Are you still able to provide help on gretl? I’m trying to import data using ODBC connection, but I’m halting at the data command line.

 

Here is my code:

open dsn=FIGTrading --odbc

string SQLQuery = "SELECT spreads_ont5year, spreads_cmb5year FROM tbl_Spreads WHERE ((spreads_date)>(DateValue(Date())-200))"

data y t obs-format="%g" query=SQLQuery –odbc

Here is what gretl returns:

gretl version 1.9.92

Current session: 2015-03-05 16:34

 

? open dsn=FIGTrading --odbc

Connected to ODBC data source 'FIGTrading'

? string SQLQuery = "SELECT spreads_ont5year, spreads_cmb5year FROM \

  tbl_Spreads WHERE ((spreads_date)>(DateValue(Date())-200))"

Replaced string SQLQuery

? data y t obs-format="%g" query=SQLQuery --odbc

 

Error executing script: halting

> data y t obs-format="%g" query=SQLQuery --odbc

If you could provide any feedback on this that would be great!

 

Description: cid:image001.jpg@01CFE944.0366CB30

Michael Walker

Associé / Associate

Groupe revenu fixe/Fixed Income Group

Marché des Capitaux/Capital Markets

Valeurs Mobilières Desjardins / Desjardins Securities Inc

Toronto

416-867-3580

 

1-855-607-3001

Fax:416-867-1490

 

25, York Street , Suite 1000

Toronto, Ontario M5J 2V5

 

 

 

Si vous avez reçu ce message électronique par erreur, ou si vous ne souhaitez plus recevoir de messages électroniques de notre part, veuillez nous en informer par courriel à l'adresse suivante: Desabonnement_Courriel@vmd.desjardins.com

If you have received this electronic message in error, or if you do not wish to receive any further electronic messages from us, please notify us by email at the following address: Email_Optout@vmd.desjardins.com

- L'intégrité des informations transmises dans ce courriel n’est pas garantie par Valeurs mobilières Desjardins, qui décline toute responsabilité quant aux dommages causés par leur modification frauduleuse. Ce courriel est confidentiel et est à l’usage exclusif de son destinataire. Toute personne qui reçoit celui-ci par erreur doit en informer immédiatement son expéditeur et le détruire sur-le-champ. Toute autre utilisation des informations qu’il contient est strictement interdite. Valeurs mobilières Desjardins se réserve le droit de surveiller toutes les communications transmises par courrier électronique par l’intermédiaire de ses réseaux. Les instructions relatives à des opérations acheminées par courrier électronique ne seront pas acceptées. Le présent avertissement ne limite aucunement tout autre avertissement plus restrictif qui vous aurait été transmis par Valeurs mobilières Desjardins.

- The integrity of the transmitted information in this email is not guaranteed by Desjardins Securities, which accepts no liability for any damage caused by its fraudulent alteration. This email is confidential and is intended for the sole use of the recipient or authorized representative of the recipient. Any person who receives this email by mistake shall immediately notify the sender and destroy it. Any other use of the information therein is strictly prohibited. Desjardins Securities reserves the right to monitor all communications sent by e-mail through its networks. Instructions related to operations sent by e-mail will not be accepted. In no way does this notice limit other more restrictive warnings that may have been sent to you by Desjardins Securities.