cordelia
cordelia

Reputation: 133

SAS Column adding a backslash

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.

Upvotes: 0

Views: 318

Answers (1)

PeterClemmensen
PeterClemmensen

Reputation: 4937

Use the CATX Function

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

Upvotes: 1

Related Questions