I am trying to create a dataset called work.swimlong; from the dataset work.swimminutes. You can see the format for work.swimminutes below in the instream data. I am trying to make work.swimlong in the format that the Mon, Tues, Wed variables are in collected in one variable called "Day", with the appropiate minutes by each day, like this: Name Age Day Minutes Ann 26 Mon 51 Ann 26 Tues 19 .... data work.swimminutes; infile datalines delimiter = ','; input Name :$5. Age :2. Mon :2. Tues :2. Wed :2.; datalines; Ann,26,51,19,22 Bob,30,43,20,60 Chris,41,48,.,36 Dina,21,32,57,22 ; proc transpose data = work.swimminutes out = work.swimlong; Which Var or By statements do I need below to complete the code?
... View more