Can somebody give a thought how it will be easier to get below output...
I have input data as below :
--------------
Input Data -------------- 53809,09,01-SEP-2015,0:15,8,1MA,1,1MB,1,1ME,2,1MF,1,2MC,1,2MD,1,2MG,1,2MH,2 53809,09,01-SEP-2015,0:30,8,1MA,1,1MB,1,1ME,2,1MF,1,2MC,1,2MD,1,2MG,1,2MH,2 53809,09,01-SEP-2015,0:45,8,1MA,1,1MB,1,1ME,3,1MF,1,2MC,1,2MD,1,2MG,1,2MH,3 53809,09,01-SEP-2015,1:00,8,1MA,1,1MB,1,1ME,3,1MF,1,2MC,1,2MD,1,2MG,1,2MH,2
And I am looking if I could have output something like below:
---------------------
Output Desired:
---------------------
SUBSYS,Month,Date,Time,#Blades,1MA,1MB,1ME,1MF,2MC,2MD,2MC,2MH 53809,09,01-SEP-2015,0:15,8,1,1,2,1,1,1,1,2 53809,09,01-SEP-2015,0:30,8,1,1,2,1,1,1,1,2 53809,09,01-SEP-2015,0:45,8,1,1,3,1,1,1,1,3 53809,09,01-SEP-2015,1:00,8,1,1,3,1,1,1,1,2
So basically as you see the 1MA,1MB etc get the heading and then corresponding values get at the bottom of those 1MA,1MB ...
I see there's possibility to have it done using the Proc transpose or array can be done however don't seems to come out exactly...
... View more