Page 1 of 1

double brackets & string issue

Posted: Thu Sep 03, 2020 7:26 am
by ottavio.ricchi
Hi there,
there is something that is driving us mad and hope you can help

running the two following programming lines (lines 5 and 6) gives an error message

%wdir="\teseo\gestione\DIREZIONE 1\Ufficio II\Apri e lavora\Patto di Stabilità\codici_Eviews\Creazione database"
cd %wdir

The error message is:
Path or file not found : \TESEO\GESTIONE\DIREZIONE in "CD
\TESEO\GESTIONE\DIREZIONE 1\UFFICIO II\APRI E
LAVORA\PATTO DI STABILITÀ\CODICI_EVIEWS\CREAZIONE
DATABASE" on line 6.

It looks like the brackets are not recognised by the program, however I can assure you that my collegues run the same program without having any trouble

Please help!

Ottavio

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 7:35 am
by EViews Gareth
When you say brackets, what do you mean? I see no brackets?

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 8:01 am
by ottavio.ricchi
I'm very sorry, I meant quotation marks i.e. this simbol "

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 8:03 am
by EViews Gareth
When you run the program do you have "Version 4 Compatible Mode" turn on?

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 8:06 am
by ottavio.ricchi
Let me add that the text
"\teseo\gestione\DIREZIONE 1\Ufficio II\Apri e lavora\Patto di Stabilità\codici_Eviews\Creazione database"
is colored in red, so apparently eviews considers it as a string
however when it comes to running the programm it does not work like that and it stops at \teseo\gestione\DIREZIONE 1
the first empty space is between DiREZIONE and 1

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 8:07 am
by ottavio.ricchi
version 4 compatibility is on

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 8:19 am
by ottavio.ricchi
It looks that it works if you place three quoation marks on each side

%wdir="""\\teseo.dt.tesoro.it\gestione\DIREZIONE 1\Ufficio II\Apri e lavora\Patto di Stabilità\codici_Eviews\Creazione database"""
cd %wdir

... you tell me why :-) !

thanks a lot anyway

Ottavio

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 8:23 am
by EViews Gareth
version 4 compatibility is on
Turn it off.

Re: double brackets & string issue

Posted: Thu Sep 03, 2020 8:28 am
by ottavio.ricchi
Gosh,
you are right, thank you.
...stil,l if version 4 is on, it works with three quotation marks

Ottavio