Hi,
I need to apply delimiter (",") only when data is present in A and B but not for C, D and E variables. I am trying the below code but unable to achieve the desired output values. Kindly refer below SAS code, input data (.csv file attached) and desire output.
Please help me in achieving the desired output value.
data need;
set have;
V = cats(V1, ",", V2, ",", V3, V4, V5);
run;
Input data:
A
B
C
D
E
AB
CD
EF
GH
IJ
MN
QR
ST
EF
GH
IJ
AB
EF
desired output value
AB, CD, EFGHIJ
MN, QRST
EFGHIJ
AB, EF
... View more