The ODS SHOW statement writes the current selection list to the SAS log. (See [4] in The ODS SHOW Statement Writes the Current Selection List to the SAS Log..)
ods show;