Try and Except in EViews
Posted: Fri Sep 27, 2024 12:20 pm
Mac user here, but I am using Eviews through Parallels Desktop. One issue that I encounter frequently is a changing drive. For example
fetch(d="x:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
Will work sometimes, but randomly “x” will change to the “w” drive (or even sometimes "y") and I don’t know why that is. So I’m forced to just hard code it to
fetch(d="w:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
The behavior is quite inconsistent. Is it possible to execute some form a try and except?
Something along the lines of
try:
fetch(d="x:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
except:
fetch(d="w:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
Is there a way to do this in EViews?
fetch(d="x:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
Will work sometimes, but randomly “x” will change to the “w” drive (or even sometimes "y") and I don’t know why that is. So I’m forced to just hard code it to
fetch(d="w:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
The behavior is quite inconsistent. Is it possible to execute some form a try and except?
Something along the lines of
try:
fetch(d="x:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
except:
fetch(d="w:\<path-to-a -database\somedatabase.edb") {%CONCEPTS}
Is there a way to do this in EViews?