SQL does not support multi-member database files. To access a member other than the first, create an alias.

Create alias mylib/Sales2017 for mylib/Saleshist(year2017)

Select * from mylib/Sales2017