Your program can read data from any IMS segments for which you have read access using SQL SELECT statements.