i am selecting from different layer where 1st layer is 200 distance near from the 2nd layer.
I have used a query Task:
query.spatialRelationship = Query.SPATIAL_REL_INTERSECTS;
query.geometry = 'geometry for query';
query.distance = 200 (this applied a buffer to the input geometry for the query.
You can also try client-side geoprocessing:
Retrieving data ...