PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, November 11, 2022

[FIXED] How do I use Proc Transpose to flip my data from several rows into columns?

 November 11, 2022     csv, proc, sas, transpose     No comments   

Issue

I'm working with a CSV file that contains survey information. An example of the data would be this:

Original Data Example enter image description here

I'm looking to write a Proc Transpose in SAS to change all of the data so it's in one row with new columns so it looks like this:

Transposed Data Example enter image description here

Thanks in advance


Solution

Your TRANSPOSE should be

by Survey_ID Question_Num;
id Key_2;
var Value;


Answered By - Richard
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing