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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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