double brackets & string issue

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

ottavio.ricchi
Posts: 6
Joined: Wed Sep 02, 2020 3:24 am

double brackets & string issue

Postby ottavio.ricchi » Thu Sep 03, 2020 7:26 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12579
Joined: Tue Sep 16, 2008 5:38 pm

Re: double brackets & string issue

Postby EViews Gareth » Thu Sep 03, 2020 7:35 am

When you say brackets, what do you mean? I see no brackets?
Follow us on Twitter @IHSEViews

ottavio.ricchi
Posts: 6
Joined: Wed Sep 02, 2020 3:24 am

Re: double brackets & string issue

Postby ottavio.ricchi » Thu Sep 03, 2020 8:01 am

I'm very sorry, I meant quotation marks i.e. this simbol "

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12579
Joined: Tue Sep 16, 2008 5:38 pm

Re: double brackets & string issue

Postby EViews Gareth » Thu Sep 03, 2020 8:03 am

When you run the program do you have "Version 4 Compatible Mode" turn on?
Attachments
2020-09-03_080315.png
2020-09-03_080315.png (21.36 KiB) Viewed 284 times
Follow us on Twitter @IHSEViews

ottavio.ricchi
Posts: 6
Joined: Wed Sep 02, 2020 3:24 am

Re: double brackets & string issue

Postby ottavio.ricchi » Thu Sep 03, 2020 8:06 am

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

ottavio.ricchi
Posts: 6
Joined: Wed Sep 02, 2020 3:24 am

Re: double brackets & string issue

Postby ottavio.ricchi » Thu Sep 03, 2020 8:07 am

version 4 compatibility is on

ottavio.ricchi
Posts: 6
Joined: Wed Sep 02, 2020 3:24 am

Re: double brackets & string issue

Postby ottavio.ricchi » Thu Sep 03, 2020 8:19 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12579
Joined: Tue Sep 16, 2008 5:38 pm

Re: double brackets & string issue

Postby EViews Gareth » Thu Sep 03, 2020 8:23 am

ottavio.ricchi wrote:version 4 compatibility is on


Turn it off.
Follow us on Twitter @IHSEViews

ottavio.ricchi
Posts: 6
Joined: Wed Sep 02, 2020 3:24 am

Re: double brackets & string issue

Postby ottavio.ricchi » Thu Sep 03, 2020 8:28 am

Gosh,
you are right, thank you.
...stil,l if version 4 is on, it works with three quotation marks

Ottavio


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests