Hi,
I need some help in adding rows (observations) of one column to the other column from the same table. I have a table with two variables (see below).
Type of call Categories
MVA Cardiac
Trauma Cardiac
No Respiratory
MVA Cardiac
NO Neuro
MVA Neuro
Trauma Cardiac
I want to add type of call to Categories so the output should look like
Type of Call Categories
No Cardiac
Cardiac
No Respiratory
Cardiac
NO Neuro
Neuro
Cardiac
MVA
MVA
MVA
Trauma
Trauma
Can anybody please help me getting this output?
Thank you
M
What are the rules you wish to use to get from table1 to table2? Please explain clearly.
Hi,
I'm using only one table, the two columns are from the same table and I'm trying to add observations from column1 to column2.
M
OK, so you're trying append column 1 values to column 2, but you have not explained:
We cant' read you mind, which is why we need clear and complete description of the task.
Also, you can help yourself if you put the starting data in the form of a sas data step, with a data set name, ,an input statement, datalines statement, and the data.
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.
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.