Hi all, I have this code: proc sql; create table epi_flu_pneumonia_deaths2 as select week_end, mmwr_week, season, flu_deaths, pneumonia_deaths, all_deaths , season_num from epi_flu_pneumonia_deaths order by whichc(season, '2009-2010','2010-2011','2011-2012','2012-2013','2013-2014','2014-2015','2015-2016','2016-2017','2017-2018','2018-2019','2019-2020','2020-2021','2021-2022'), whichn(mmwr_week, 40,41,42,43,44,45,46,47,48,49,50,51,52,53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39); quit; and I keep getting this note: NOTE: The query as specified involves ordering by an item that doesn't appear in its SELECT clause. and the resulting table is only sorted by the first whichc, season. am I missing something? Thanks Enrique
... View more