Vertical to horizontal

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 14
Accepted Solution

Vertical to horizontal

Dear All,

Given vertical data, say

w

1

2

3

4

Desired:

w1 w2 w3 w4

1   2     3   4

Thanks.


Accepted Solutions
Solution
‎08-07-2013 01:29 PM
Super User
Posts: 11,343

Re: Vertical to horizontal

Basic is going to be

Proc transpose data=inputdatasetname out=outputdatasetname;

var w;

run;

Behavior of other variables in the dataset if any is problematic.

View solution in original post


All Replies
Solution
‎08-07-2013 01:29 PM
Super User
Posts: 11,343

Re: Vertical to horizontal

Basic is going to be

Proc transpose data=inputdatasetname out=outputdatasetname;

var w;

run;

Behavior of other variables in the dataset if any is problematic.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 183 views
  • 0 likes
  • 2 in conversation