Hi All, Please accept my Sincere Apologies for posting the same question again. I missed the attachment in my previous post and I'm not sure how to add an attachment to the existing post (https://communities.sas.com/t5/SAS-Programming/Import-an-excel-sheet-which-has-the-column-header-on-two-rows/m-p/804672/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufEwxQlFPV0dXOEkyQURCfDgwNDY3MnxTVUJTQ1JJUFRJT05TfGhL#M316904). I'm trying to read an excel file into SAS which has headers on two rows, I tried using the solutions provided here but I was not able to get the desired output. I thought of reading the .xlsx file twice and assigning the variable names to the merged columns in excel but later realized that the excel sheet/dataset keeps growing for the upcoming months or years. I also tried to transpose after importing the .xlsx file with GETNAME = NO OPTION. The transpose results. Variable Name Variable Type C 2 E 2 F 2 G 2 GRAND TOTAL 1 H 2 I 2 J 2 K 2 L 2 M 2 N 2 O 2 PROGRAM_TYPE 2 PRODUCT_TYPE 2 R 2 S 2 T 2 U 2 V 2 W 2 X 2 Y 2 _2020 2 _2021 2 Please find the excel attached, Kindly Suggest.
... View more