In addition to Tobias reply. If you don't like to create additional datawindow object for your external datawindow, you can just create the bare bones of the datawindow definition and use it as a datastore.
Such as:
string ls_syntax, ls_error datastore lds_temp ls_syntax = 'release 10; datawindow( units = 0 ) ' + & 'table(column=(type=char(256) updatewhereclause=no name=s_country_code dbname="s_country_code" ) ' + & 'column=(type=char(256) updatewhereclause=no name=s_state_province2 dbname="s_state_province2" ) ' + & 'column=(type=char(256) updatewhereclause=no name=s_city2 dbname="s_city2" ))' lds_temp = create datastore lds_temp.create(ls_syntax,ls_error)
hth,
Neil










