DATA Step, Macro, Functions and more

suggest two ways of doing this

Accepted Solution Solved
Reply
Contributor
Posts: 24
Accepted Solution

suggest two ways of doing this

i have a dataset like this

t1 t2 t3 t4

a  .   .   .

.  b   .   .

.  .   c   d

a b  c   d

 

output i need is

test

a

b

cd

abcd 


Accepted Solutions
Solution
3 weeks ago
Esteemed Advisor
Posts: 5,479

Re: suggest two ways of doing this

Posted in reply to Bhargav_Movva

CATS, CATT - Does that count as two?

PG

View solution in original post


All Replies
Solution
3 weeks ago
Esteemed Advisor
Posts: 5,479

Re: suggest two ways of doing this

Posted in reply to Bhargav_Movva

CATS, CATT - Does that count as two?

PG
Contributor
Posts: 24

Re: suggest two ways of doing this

couldn't understand what you were asking
Esteemed Advisor
Posts: 5,479

Re: suggest two ways of doing this

Posted in reply to Bhargav_Movva

CATS and CATT are two data step functions that perform character string concatenation. As in

 

test = cats(of t1-t4);

PG
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 127 views
  • 0 likes
  • 2 in conversation