BookmarkSubscribeRSS Feed
sivakumar
Calcite | Level 5

Pls clarify, how to write a code for average values for VSTEST, VSSTRESC & VSDRVFL

 

best regards

ksk

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Pls clarify, your question?

 

To get good answers, post example test data in the form of a datastep.  Post example of what you want out at the end.  Specify the process to get from one to the other.  It sounds like you want the proc means procedure, however as the 3 CDISC variables you have given there are all character, this doesn't make any sense.  Perhaps you mean you want a frequency count of those variables?  If so then lok at proc freq.

ballardw
Super User

Proc means data=have mean;

   var VSTEST VSSTRESC VSDRVFL;

run;

 

is one way where HAVE is the name of your dataset.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 1454 views
  • 2 likes
  • 3 in conversation