I am using the FETCH command with the Datastream server and would like to be able to specify an arbitrary start date for the timeseries. MATLAB should then retrieve data that is available for any dates after the specified start date.
I need to do this because I am not aware of the date from which data is available for a particular security. Currently, if I have specified a start date that is earlier than the date from which data is available, I get an error message.
CONNECT = datastream(username,passwd,'Datastream',... '<http://dataworks.thomson.com/Dataworks/Enterprise/1.0'>);res = fetch(CONNECT,'CNGDP...D',[],'1950-01-01','2009-03-01'); disp(res)% This request crashes - '1940-01-01' is too early a startdate.
res2 = fetch(CONNECT,'CNGDP...D',[],'1940-01-01','2009-03-01');
res2 = fetch(CONNECT,'CNGDP...D',[],'1940-01-01','2009-03-01'); ??? Error using ==> datastream.fetch at 219 Invalid Start Date
Best Answer