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

string-SAS列添加反斜杠

(string - SAS Column adding a backslash)

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

我想知道如何在SAS中连接两个列的值。

例如,列A的值为2006,列B的值为2007。

我如何将C列设置为2006/2007?我无法使用正斜杠连接。

提前致谢。

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

使用CATX功能

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