BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
zimcom
Pyrite | Level 9

Dear community,

I have a data and codes looks like below and I don't know why my 'proc transpose' return 0 observations, the message in the log is not helpful. 

 

NOTE: There were 2580 observations read from the data set WORK.INCLUSION1.
NOTE: The data set WORK.INCLUSION_T has 0 observations and 12 variables.

 

SUBJECTincl_criteriaieorres_new
117961incl01Yes
117961incl02Yes
117961incl03Yes
117961incl04Yes
117961incl05Yes
117961incl06Yes
117961incl07Yes
117961incl08Yes
117961incl10Yes
117961incl09Yes
118036incl01Yes
118036incl02Yes
118036incl03Yes
118036incl04Yes
118036incl05Yes
118036incl06Yes
118036incl07Yes
118036incl08Yes
118036incl10Yes
118036incl09Yes

 

proc sort data = Inclusion1; by SUBJECT; run;

proc transpose data = Inclusion1 out = Inclusion_t;
by SUBJECT;
run;

 

Thank you

zimcom

1 ACCEPTED SOLUTION

Accepted Solutions
novinosrin
Tourmaline | Level 20

hi @zimcom  How do you want your output(transposed data to look like). There is no output sample provided. If you know what you are doing, I'm afraid you are missing var statement that specifies variables to transpose

 

var var1 var2;* you are missing this;

View solution in original post

4 REPLIES 4
novinosrin
Tourmaline | Level 20

hi @zimcom  How do you want your output(transposed data to look like). There is no output sample provided. If you know what you are doing, I'm afraid you are missing var statement that specifies variables to transpose

 

var var1 var2;* you are missing this;

zimcom
Pyrite | Level 9

THANK YOU!

Astounding
PROC Star

When you leave out the VAR statement, the default is to transpose all numeric variables.  But you have no numeric variables to transpose.

zimcom
Pyrite | Level 9

That explains my situation, Thank you.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1014 views
  • 1 like
  • 3 in conversation