Maybe this:
proc sql;
select * from ru99.salv_item_id,
(SELECT EC900.TM_ID
FROM ru99.test EC900
WHERE ID > 2 AND
ID < 9) TMID_900
where id=tmid_900.id;
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.