BookmarkSubscribeRSS Feed
amber_t
Calcite | Level 5

I created an example of my data that I am using.  The difference is that there are over 1000 different variables that are repeated like the example below. My ultimate goal is to collapse the series of variables into one variable. Here it would be collapsed into am_t_p. I need to be able to count the number of variables in each series. There are so many different variables that I can count them individually. Would prxmatch and prxparse work with counting them or is there another way to capture those variables so that I can transpose them? Thank you!

 

id_tam_t1_pam_t2_pam_t3_p
11111
12222
2 REPLIES 2
Reeza
Super User

Look at the SASHELP.VCOLUMNS data set. It has information on all your variables, formats and types of the data sets.

ballardw
Super User

If you asking if the PRX functions would work on the variable names then the answer is No.

 

It might help to provide a bid more input data, maybe 4 or 5 rows and then what the output for that is supposed to look like as "collapse the seris of variables" has many possible interpretations and a specific example would help.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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