Assuming that the libraries are assigned, you could query sashelp.vtable to find out in which library a dataset is stored. Unfortunately that path is not stored in sashelp.vtable, but in sashelp.vlibnam.
Finding a program is hardly possible with EG, because it has no function to search for text in all files in a directory.
Side-note: if programs are that bad documented, that you have trouble finding the right program, i would start searching for another job asap.