get_dl_uids function

Extract UIDs from a data list