DATA Step, Macro, Functions and more

how to transpose this data id variable is mg and var variables is remaining all

Reply
Occasional Contributor
Posts: 5

how to transpose this data id variable is mg and var variables is remaining all

data a;
input age sex$ race$ mg$;
cards;
12 m as 10mg
13 f ot 5mg
10 m us 10mg
14 no as 5mg
10 m ot 9mg
;

Super User
Posts: 6,939

Re: how to transpose this data id variable is mg and var variables is remaining all

Please post an example of your expected output.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 1 reply
  • 100 views
  • 0 likes
  • 2 in conversation