hello, proc transpose data= BEH_AGG_5 out= BEH_AGG_5_CRDGEN_TRSPS (drop = _name_) ;
by RAC &v_AXE. GENERATION PRODUCTION ;
var CRD_GEN_MENS_MEAN ;
id ANNEE_AMO ;
idlabel ANNEE_AMO_LABEL ;
run ;
ODS TAGSETS.EXCELXP FILE = "&xlsfile." style=normal ;
ODS TAGSETS.EXCELXP options ( skip_space='1,0,0,0,0' sheet_name='Encours CRD GEN' ) ;
PROC REPORT DATA = work.BEH_AGG_5_CRDGEN_TRSPS NOwd ;
title ;
format _numeric_ z12.5 ;
RUN ;
ODS TAGSETS.EXCELXP CLOSE ; by launching this code in sas EG environment , it works as intended, year are sorted ascending , 2015, 2016, 2017 (within the excel file) but in bacth mode, years are sorted descending . how can I sort It ? thanks a lot in advance Nasser
... View more