MATLAB: Do I receive the message “no historical data returned” when querying historical data while using the FETCH command in Datafeed Toolbox 3.3 (R2009a)

Datafeed Toolbox

I am using the Bloomberg FETCH command to retrieve historical data. I retrieved the strings for these fields by loading bbfields.mat and selecting the following fields from the BBFIELDNAMES array:
'DATE_OF_LAST_HEADER'
'FIRST_TRADING_DATE'
The following code works:
fetch(connect,'SPYUS','history','open',firsttradedate,lasttradedata,'don')
But when I try to substitute one of the above field names, such as:
field = 'FIRST_TRADING_DATE'
fetch(connect,'SPYUS','history',field,firsttradedate,lasttradedata,'don')
I get the following message:
no historical data was returned

Best Answer

When the return message is "no historical data was returned" this generally means that historical data can't be returned with those fields. These fields are only available with the "GETDATA" flag.