Warm tip: This article is reproduced from serverfault.com, please click

SAS Column adding a backslash

发布于 2020-12-01 09:49:31

I was wondering how I can concatenate a two column values in SAS.

For Example Column A has a value 2006 and Column B has a value of 2007.

How do I get Column C to be 2006/2007 ? I am unable to get concatenate using the forward slash.

Thanks in advance.

Questioner
cordelia
Viewed
0
draycut 2020-12-01 17:53:13

Use the CATX Function

data _null_;
   c = catx('/', '2006', '2007');
   put c=;
run;